Commit fd803c21ec5d36758d4914b4dfdc46314e33d6be

Authored by 648540858
1 parent 61f5950b

修复前端登录

web_src/src/components/Login.vue
... ... @@ -84,7 +84,7 @@ export default {
84 84 params: loginParam
85 85 }).then(function (res) {
86 86 console.log(JSON.stringify(res));
87   - if (res.data == "success") {
  87 + if (res.data.code == 0 && res.data.msg == "success") {
88 88 that.$cookies.set("session", {"username": that.username}) ;
89 89 //登录成功后
90 90 that.cancelEnterkeyDefaultAction();
... ...