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('') }) } }