修复bug
This commit is contained in:
@@ -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', // 解除样式隔离
|
||||||
|
|||||||
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user