From d9edcf2fa95e62bf9bbac6253a695c1151780e7b Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Tue, 24 May 2022 14:23:21 +0800
Subject: [PATCH] 'lct'
---
src/views/login/index.vue | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index e36df7c..3effba1 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -114,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)
@@ -123,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
@@ -173,7 +174,7 @@
.login-container {
min-height: 100%;
width: 100%;
- background: url("../../assets/bg_login.png") center no-repeat;
+ background: url("../../assets/bg.jpg") center no-repeat;
//background-size: auto 100%;
// background-color: #2d3a4b;
overflow: hidden;
--
Gitblit v1.9.2