diff --git a/src/views/Login.vue b/src/views/Login.vue index ab565b0..76b253f 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -112,12 +112,16 @@ export default { }) this.$message.success('登录成功') this.$store.commit('saveUserInfo', res.data) + this.getMarket().then((resx)=>{ this.$store.commit('setMarketpre', resx) this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } }) }).catch((resx)=>{ this.$store.commit('setMarketpre', resx) this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } }) + }).finally(()=>{ + this.$store.commit('setMarketpre', '') + this.$router.push({ path: '/report/list', query: { id: 'AEHJB8YNJ3' } }) }) }).catch(_ => {