【优化】首页增加watch方法,监测登录状态,防止出现首次登录后未更新分享地址,增加邀请码的问题。

This commit is contained in:
jianweie code
2023-07-05 22:18:19 +08:00
parent 898ad991cd
commit 3cff773bb1

View File

@@ -181,6 +181,13 @@
this.initData();
uni.stopPullDownRefresh();
},
watch: {
hasLogin() {
if (this.hasLogin == true && this.shareUrl.indexOf('-0-') != -1) {
this.getShareUrl();
}
}
},
//分享
onShareAppMessage(res) {
return {