请求响应错误统一处理

This commit is contained in:
sfmind
2022-04-21 01:46:45 +08:00
parent 713817d0f1
commit e9c0c452c8
7 changed files with 38 additions and 57 deletions

View File

@ -72,7 +72,9 @@ export default {
}
},
onLoad() {
this.$store.dispatch('obtainUserInfo')
if (this.hasLogin){
this.$store.dispatch('obtainUserInfo')
}
},
methods: {
loginOrJump(pageUrl) {