From c31ffec38e307c3e7149a399e55cb7e65d4cf0de Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Fri, 5 May 2023 10:20:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8A=A5=E5=91=8A=E4=B8=8A=E4=BC=A0=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Login.vue | 4 ++++ 1 file changed, 4 insertions(+) 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(_ => {