lrf402788946 4 년 전
부모
커밋
2d09b65ceb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/layout/common/share.vue

+ 2 - 2
src/layout/common/share.vue

@@ -52,7 +52,7 @@ export default {
           timestamp: data.timestamp,
           nonceStr: data.noncestr,
           signature: data.sign,
-          jsApiList: ['updateAppMessageShareData', 'chooseImage'],
+          jsApiList: ['updateAppMessageShareData', 'chooseImage', 'onMenuShareAppMessage'],
         });
         this.$wx.ready(() => {
           console.log('in ready');
@@ -64,7 +64,7 @@ export default {
     },
     async toShare() {
       this.$wx.ready(() => {
-        this.$wx.updateAppMessageShareData({
+        this.$wx.onMenuShareAppMessage({
           title: this.title,
           desc: this.desc,
           // imgUrl: this.img,