From aac9bdc84e018dd1ed65fcecd289e8a82ec1a014 Mon Sep 17 00:00:00 2001 From: zhoulingpo Date: Fri, 5 May 2023 10:25:33 +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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/views/Login.vue b/src/views/Login.vue index 76b253f..24fea97 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -112,19 +112,15 @@ 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(_ => { + }).catch(err => { this.verifyCode() }) }, @@ -145,9 +141,9 @@ export default { }else{ resolve('') } + }).catch(()=>{ + reject('') }) - }).catch(()=>{ - reject('') }) } }