mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
【优化】首页增加watch方法,监测登录状态,防止出现首次登录后未更新分享地址,增加邀请码的问题。
This commit is contained in:
@@ -181,6 +181,13 @@
|
||||
this.initData();
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
watch: {
|
||||
hasLogin() {
|
||||
if (this.hasLogin == true && this.shareUrl.indexOf('-0-') != -1) {
|
||||
this.getShareUrl();
|
||||
}
|
||||
}
|
||||
},
|
||||
//分享
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user