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

修复BUG,如果在这里数据库查询出现错误会导致问题 #1136

Merged
merged 1 commit into from Jun 22, 2022
Merged

Conversation

realpg
Copy link
Contributor

@realpg realpg commented Jun 22, 2022

如果在这里数据库查询出现错误,err != nil 就会两次返回 出现返回结果为

{"code":7,"data":{},"msg":"设置失败"}{"code":0,"data":{},"msg":"设置成功"}
这种形式,导致vue js无法正确处理返回

如果在这里数据库查询出现错误,err != nil 就会两次返回 出现返回结果为

{"code":7,"data":{},"msg":"设置失败"}{"code":0,"data":{},"msg":"设置成功"}
这种形式,导致vue js无法正确处理返回
@piexlmax piexlmax merged commit 006e210 into flipped-aurora:main Jun 22, 2022
Stephen-Z pushed a commit to Stephen-Z/gin-vue-admin that referenced this pull request Jul 12, 2023
如果在这里数据库查询出现错误,err != nil 就会两次返回 出现返回结果为

{"code":7,"data":{},"msg":"设置失败"}{"code":0,"data":{},"msg":"设置成功"}
这种形式,导致vue js无法正确处理返回
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant