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,