切入曲靖验证和修正
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user