From 284ae5b9ff466a9b0cd6be7eed2aefa765feee6f Mon Sep 17 00:00:00 2001
From: cqf <2252655793@qq.com>
Date: Thu, 26 May 2022 13:43:28 +0800
Subject: [PATCH] 隐患汇总跳转查询优化
---
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