From 89b24e8ac8377c8f438eae301845cd1e44f0a4ef Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期二, 10 五月 2022 08:38:04 +0800
Subject: [PATCH] Merge branch 'master' of https://sinanoaq.cn:8888/r/ztqt
---
src/views/login/index.vue | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index d35ac25..3a0e544 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -95,6 +95,7 @@
const res = response.data
if (res.code == 200) {
localStorage.setItem('loginForm',JSON.stringify(loginForm))
+ // this.$store.dispatch('user/getClassifyOne',1)
_this.loading = false
const data = res.result
if (data.type != 1 && data.type != 2) {
@@ -113,6 +114,7 @@
_this.$store.commit('SET_ROLES', data.roles)
Cookies.set('roles', JSON.stringify(data.roles))
setToken(data.token)
+ Cookies.set('loginForm',data)
Cookies.set('userName', data.username)
Cookies.set('name', data.username)
Cookies.set('userId', data.id)
--
Gitblit v1.9.2