2025-09-17
修改登录
This commit is contained in:
11
App.vue
11
App.vue
@@ -2,6 +2,17 @@
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
let token = uni.getStorageSync("token")
|
||||
if (token) {
|
||||
plus.navigator.closeSplashscreen();
|
||||
return
|
||||
}
|
||||
uni.reLaunch({
|
||||
url: "/pages/login/login",
|
||||
success() {
|
||||
plus.navigator.closeSplashscreen();
|
||||
}
|
||||
})
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
|
||||
Reference in New Issue
Block a user