Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录使用错误密码页面没有弹窗消息 #316

Closed
lyuluke opened this issue Aug 17, 2023 · 0 comments
Closed

登录使用错误密码页面没有弹窗消息 #316

lyuluke opened this issue Aug 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@lyuluke
Copy link

lyuluke commented Aug 17, 2023

mock/user/index.ts这里
if (!hasUser) {
return {
code: 500,
message: '账号或密码错误'
}
}

与src/config/axios/config.ts中 defaultResponseInterceptors 解析数据不匹配

改成了
if (!hasUser) {
return {
data:{
code: 500,
message: '账号或密码错误'
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants