且之前说是可以监测到launch事件,但是最近什么都没改,莫名其妙不可以了,附代码如上:
_this.wxOpenTags =
`<wx-open-launch-weapp
id="launch-wxapp"
username="gh_8f2c9fdbdecd"
appid="your-appid"
extinfo="your-extinfo"
path="pages/index/index?scene=9d05cb95da"
@launch="onLaunch"
@error="onError"
@ready="onReady"
.btn-open-weapp{ display: inline-block; width: 260px; height: 300px; border-radius: 10px; background-image: url(`+_this.image+`); background-size: 100% 100%; text-align: center; margin: 0 auto; outline:none; border:none; }`;
_this.show();
_this.$forceUpdate();
可正常显示,并实现跳转小程序功能,但是在methods中对@launch="onLaunch"
@error="onError"
@ready="onReady"事件的监听不起作用
launch事件监听不了这个问题,解决了吗???我也遇到了 求解
大佬,请问下你是怎么实现的
https://blog.csdn.net/github_38281308/article/details/107310719