解决控制台plus报错
This commit is contained in:
parent
945623e787
commit
2b1e3c09a7
12
App.vue
12
App.vue
@ -57,12 +57,20 @@
|
|||||||
if (!this.$store.state.app.token) uni.reLaunch({
|
if (!this.$store.state.app.token) uni.reLaunch({
|
||||||
url: '/pages/oaLogin/oaLogin',
|
url: '/pages/oaLogin/oaLogin',
|
||||||
success() {
|
success() {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
else plus.navigator.closeSplashscreen();
|
else {
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
|
// #endif
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
plus.navigator.closeSplashscreen();
|
// #ifdef APP-PLUS
|
||||||
|
plus.navigator.closeSplashscreen(); // 关闭渲染启动图
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user