修复小程序页面打不开跳转不了的bug
This commit is contained in:
parent
ad020f8435
commit
2e264ab444
16
App.vue
16
App.vue
@ -54,8 +54,6 @@
|
||||
}
|
||||
}
|
||||
console.log('App Launch')
|
||||
this.$store.dispatch('initConfig');
|
||||
this.$isResolve()
|
||||
try {
|
||||
if (!this.$store.state.app.token) uni.reLaunch({
|
||||
url: '/pages/oaLogin/oaLogin',
|
||||
@ -63,16 +61,28 @@
|
||||
// #ifdef APP-PLUS
|
||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||
// #endif
|
||||
this.$isResolve()
|
||||
}
|
||||
})
|
||||
else {
|
||||
this.$store.dispatch('initConfig');
|
||||
this.$isResolve()
|
||||
// #ifdef APP-PLUS
|
||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||
// #endif
|
||||
}
|
||||
} catch (e) {
|
||||
this.$isResolve()
|
||||
// #ifdef APP-PLUS
|
||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||
uni.reLaunch({
|
||||
url: '/pages/oaLogin/oaLogin',
|
||||
success() {
|
||||
// #ifdef APP-PLUS
|
||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||
// #endif
|
||||
this.$isResolve()
|
||||
}
|
||||
})
|
||||
// #endif
|
||||
}
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user