Browse Source

修复前端登录

648540858 4 năm trước cách đây
mục cha
commit
fd803c21ec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      web_src/src/components/Login.vue

+ 1 - 1
web_src/src/components/Login.vue

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