修复bug

This commit is contained in:
dengjie
2023-01-31 00:24:28 +08:00
parent 6445aa4783
commit 05236e188c
2 changed files with 3 additions and 19 deletions

View File

@@ -52,14 +52,6 @@
this.showEdit = false this.showEdit = false
} }
this.getUser() this.getUser()
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
this.isLoad = false
// uni.navigateTo({
// url: '../../pages/my/login/login'
// })
return
}
this.isLoad = true
}, },
options: { options: {
styleIsolation: 'shared', // 解除样式隔离 styleIsolation: 'shared', // 解除样式隔离

View File

@@ -61,16 +61,6 @@
} }
this.isLoad = true this.isLoad = true
}, },
onLoad() {
if (!uni.getStorageSync('loginToken') || uni.getStorageSync('loginToken').length === 0) {
this.isLoad = false
// uni.navigateTo({
// url: '../../pages/my/login/login'
// })
return
}
this.isLoad = true
},
methods: { methods: {
//跳转到绑定公司页面 //跳转到绑定公司页面
bindCompany() { bindCompany() {
@@ -135,7 +125,9 @@
return return
} }
this.isLoad = true this.isLoad = true
this.$refs.myavatar.getUser() if (this.isLoad) {
this.$refs.myavatar.getUser()
}
}, },
failToLoad() { failToLoad() {
// uni.navigateBack({ // uni.navigateBack({