Commit 62a13688 by MichaelJier

fix

1. 修复微信分享配置初始化与登录不匹配的问题
parent cd91a926
......@@ -39,12 +39,16 @@ export default {
},
mounted() {
this.$Bus.$on('bus-showShare', this._toggleShare);
if (UserAgent.isWx()) {
this._InitWXShare();
this._getWxJsapiPackage();
}
this.$Bus.$on('bus-initWX', this._initWXAll);
this._initWXAll()
},
methods: {
_initWXAll() {
if (UserAgent.isWx()) {
this._InitWXShare();
this._getWxJsapiPackage();
}
},
updateQueryStringParameter(uri, key, value) {
if (!value) {
return uri;
......@@ -131,6 +135,7 @@ export default {
},
beforeDestroy() {
this.$Bus.$off('bus-showShare', this._toggleShare);
this.$Bus.$off('bus-initWX', this._initWXAll);
}
};
</script>
......
......@@ -73,6 +73,7 @@ export default {
}
this.$Bus.$on('bus-showLogin', this._toggleLogin);
await this.get_userInfo({ refererId: this.$route.query.refererId });
this.$Bus.$emit('bus-initWX');
this.set_nowDate();
if (!process.env.private) {
this.timer = websocketHeartbeat.call(this)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment