mpvue-page-factory icon indicating copy to clipboard operation
mpvue-page-factory copied to clipboard

onShareAppMessage无法通过mixins注入

Open luanwulin opened this issue 6 years ago • 3 comments

看了下源码,onShareAppMessage必须在App上有定义才能调用,但是在mixins的时候是不会注册上去的,不知道大佬是作何考虑,可以去掉这个判断么?

    // // 用户点击右上角分享
    onShareAppMessage: App.onShareAppMessage ?
      function (options) {
        var rootVueVM = getRootVueVm(this);
        return callHook$1(rootVueVM, 'onShareAppMessage', options);
      } : null,`

luanwulin avatar Nov 02 '18 10:11 luanwulin

还有个问题就是,handlerror没有定义呀w(゚Д゚)w

luanwulin avatar Nov 03 '18 02:11 luanwulin

大佬,解决了没

duminghong avatar Dec 25 '18 10:12 duminghong

@duminghong 没有,后来运营改逻辑了,,不用全部页面分享了。现在换megalo了,,mpvue太多坑

luanwulin avatar Dec 26 '18 02:12 luanwulin