zhujindu 11 months ago
parent
commit
a2f829a737
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/home/index.vue

+ 8 - 2
src/views/home/index.vue

@@ -89,11 +89,17 @@ export default {
           link: 'https://work.weixin.qq.com/',
           imgUrl:
             'https://res.mail.qq.com/node/ww/wwmng/style/images/index_share_logo$13c64306.png',
-          success() {
+          success: () => {
             // 用户确认分享后回调
             console.log('用户确认分享后回调');
           },
-          cancel() {
+          error: () => {
+            console.log('error');
+            if (res.errMsg.indexOf('no permission') > 0) {
+              alert('未agentConfig');
+            }
+          },
+          cancel: () => {
             // 用户取消分享后回调
             console.log('用户取消分享后回调');
           },