From fd803c21ec5d36758d4914b4dfdc46314e33d6be Mon Sep 17 00:00:00 2001 From: 648540858 <18010473990@163.com> Date: Sun, 8 Aug 2021 09:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/Login.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/src/components/Login.vue b/web_src/src/components/Login.vue index fa90fe1e..2b544bcc 100644 --- a/web_src/src/components/Login.vue +++ b/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();