lrf402788946 %!s(int64=4) %!d(string=hai) anos
pai
achega
2d09b65ceb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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,