From fa0660291055ec113f9982270c27ebc45bec16ce Mon Sep 17 00:00:00 2001 From: xingqiao <xingqiao@uni-ubi.com> Date: 星期五, 26 八月 2022 11:53:28 +0800 Subject: [PATCH] Merge branch 'wvp-28181-2.0' of https://github.com/ixingqiao/wvp-GB28181-pro into 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