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