vueComponent/ant-design-vue-pro

登录Login请求中then不执行

qadan72 opened this issue · 0 comments

Question (问题描述)
我的操作如下:
1,git clone,yarn install
2,注释mock
3,使用proxy更改后端地址(配置方法正确)
4,在登录页面,点击登录后,network有请求地址,且请求成功200,但是then方法不执行,then方法有个console.log不执行,catch执行了,error的内容就是network响应的内容,这是为什么

Describe the solution you'd like (你期待的是什么?)
请问是哪里的问题?
Login(loginParams) .then((res) => { console.log(6666666666) this.loginSuccess(res) }) .catch(err => this.requestFailed(err)) .finally(() => { state.loginBtn = false })

Additional context(附加信息)

144204vh0aq2ih2520kt5a