From fe2617a36f52c16f83e7d3cb19d911bb91a3b79f Mon Sep 17 00:00:00 2001 From: lyfO_o <764716047@qq.com> Date: 星期一, 13 六月 2022 09:00:28 +0800 Subject: [PATCH] 删除固定菜单 --- src/views/login/index.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3a0e544..eaca46f 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -94,6 +94,10 @@ .then((response) => { const res = response.data if (res.code == 200) { + sessionStorage.setItem('isdepartment',res.result.isdepartment) + sessionStorage.setItem('company',res.result.company) + sessionStorage.setItem('department',res.result.department) + sessionStorage.setItem('realname',res.result.realname) localStorage.setItem('loginForm',JSON.stringify(loginForm)) // this.$store.dispatch('user/getClassifyOne',1) _this.loading = false @@ -110,7 +114,7 @@ // return } } - + Cookies.set('token',data.token) _this.$store.commit('SET_ROLES', data.roles) Cookies.set('roles', JSON.stringify(data.roles)) setToken(data.token) @@ -119,6 +123,7 @@ Cookies.set('name', data.username) Cookies.set('userId', data.id) Cookies.set('company', data.company) + Cookies.set('companyid', data.companyid) let address = ''; if (data.city != null && data.city != 'null'){ address = data.city @@ -210,7 +215,7 @@ display: inline-block; height: 474px; width: 572px; - background: url("../../assets/img_bg_login.png") center no-repeat; + background: url("../../assets/bg.jpg") center no-repeat; } .login-main-form{ display: inline-block; -- Gitblit v1.9.2