This commit is contained in:
zmj 2023-11-11 13:47:48 +08:00
commit 715484f773
2 changed files with 371 additions and 364 deletions

20
App.vue
View File

@ -45,17 +45,15 @@
data
} = await userInfo();
this.$store.commit('setUserInfo', data);
this.$isResolve()
// this.$isResolve()
// uni.$emit('home_initUserInfo', data);
return;
// return;
} catch (e) {
this.$isResolve()
// this.$isResolve()
console.log(e);
}
}
console.log('App Launch')
this.$store.dispatch('initConfig');
this.$isResolve()
try {
if (!this.$store.state.app.token) uni.reLaunch({
url: '/pages/oaLogin/oaLogin',
@ -63,17 +61,29 @@
// #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
uni.reLaunch({
url: '/pages/oaLogin/oaLogin',
success() {
// #ifdef APP-PLUS
plus.navigator.closeSplashscreen(); //
// #endif
this.$isResolve()
}
})
// #endif
}
},
onShow: function() {

View File

@ -3,8 +3,8 @@
// "appid" : "__UNI__3A527D1",
"appid" : "__UNI__B5B1EDD",
"description" : "",
"versionName": "1.2.6",
"versionCode": 126,
"versionName" : "1.2.7",
"versionCode" : 127,
"transformPx" : false,
/* 5+App */
"app-plus" : {
@ -14,9 +14,6 @@
"compatible" : {
"ignoreVersion" : true //trueHBuilderX1.9.0
},
"compatible": {
"ignoreVersion": true //trueHBuilderX1.9.0
},
// "statusbar": {
// "immersed": false
// },