切入曲靖验证和修正

This commit is contained in:
aixianling
2023-03-17 10:15:03 +08:00
parent 4f49a8ce3a
commit caa650d8a7
3 changed files with 51 additions and 12 deletions

View File

@@ -67,16 +67,17 @@ export default {
uni.navigateTo({url: `${app.path}`})
},
getApps() {
this.apps = config.apps.map(e => ({...e, path: e.libPath}))
this.apps = config.apps.map(e => {
if (/\/project\//.test(e.libPath)) {
e.project = e.libPath.replace(/.*project\/([^\/]+)\/.+/, '$1')
}
return {...e, path: e.libPath}
})
},
},
onShow() {
if (this.token) {
this.getUserInfo();
} else {
this.autoLogin().then(() => this.getUserInfo())
}
this.getApps()
Promise.all([this.token ? 0 : this.autoLogin()]).then(() => this.getUserInfo())
},
}
</script>