From 27d6c869e1fac29b6e267f1ccfb1373658bbdffa Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Thu, 19 May 2022 17:42:28 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/ztqt
---
src/views/login/index.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index e36df7c..f5dff7e 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
--
Gitblit v1.9.2