From ecf4fbb68445cf412d5e946f67f92c9928df8273 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期一, 22 八月 2022 16:53:16 +0800 Subject: [PATCH] Merge branch 'wvp-28181-2.0' --- web_src/src/components/Login.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/src/components/Login.vue b/web_src/src/components/Login.vue index d823659..4ebc6d1 100644 --- a/web_src/src/components/Login.vue +++ b/web_src/src/components/Login.vue @@ -85,8 +85,8 @@ params: loginParam }).then(function (res) { console.log(JSON.stringify(res)); - if (res.data.code == 0 && res.data.msg == "success") { - that.$cookies.set("session", {"username": that.username}) ; + if (res.data.code === 0 ) { + that.$cookies.set("session", {"username": that.username,"roleId":res.data.data.role.id}) ; //鐧诲綍鎴愬姛鍚� that.cancelEnterkeyDefaultAction(); that.$router.push('/'); -- Gitblit v1.8.0