This commit is contained in:
weipengfei 2023-09-09 09:12:54 +08:00
parent 7eaa034da5
commit 7ee5a3ea49
2 changed files with 6 additions and 3 deletions

View File

@ -42,11 +42,13 @@
// uni.$emit('home_initUserInfo', data);
return ;
}catch(e){
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'

View File

@ -582,9 +582,10 @@ export default {
this.myOaInfo = res;
},
},
onPullDownRefresh () {
this.getOrderList();
this.$store.dispatch('initConfig');
async onPullDownRefresh () {
await this.getOrderList();
await this.$store.dispatch('initConfig');
await this.getApproveList();
// this.getIndexList()
uni.stopPullDownRefresh();
},