Commit fd803c21ec5d36758d4914b4dfdc46314e33d6be
1 parent
61f5950b
修复前端登录
Showing
1 changed file
with
1 additions
and
1 deletions
web_src/src/components/Login.vue
| @@ -84,7 +84,7 @@ export default { | @@ -84,7 +84,7 @@ export default { | ||
| 84 | params: loginParam | 84 | params: loginParam |
| 85 | }).then(function (res) { | 85 | }).then(function (res) { |
| 86 | console.log(JSON.stringify(res)); | 86 | console.log(JSON.stringify(res)); |
| 87 | - if (res.data == "success") { | 87 | + if (res.data.code == 0 && res.data.msg == "success") { |
| 88 | that.$cookies.set("session", {"username": that.username}) ; | 88 | that.$cookies.set("session", {"username": that.username}) ; |
| 89 | //登录成功后 | 89 | //登录成功后 |
| 90 | that.cancelEnterkeyDefaultAction(); | 90 | that.cancelEnterkeyDefaultAction(); |