From cd79b3bfdbc33ffa79fefcf5d6fde287a1c05c2f Mon Sep 17 00:00:00 2001
From: panzy <225@qq.com>
Date: Sat, 21 May 2022 11:58:19 +0800
Subject: [PATCH] 表格添加loding转圈 隐患汇总添加导出
---
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