From e8d946a82907aa530ff086987d3ec7d2c04a90d2 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期二, 15 十一月 2022 13:09:55 +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 8a099cb..9797916 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 @@ -230,7 +235,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