From 4a513ab9424017b42ac705b611e7835b6707f7d1 Mon Sep 17 00:00:00 2001
From: lijingjia
Date: Tue, 4 Jun 2024 10:12:39 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84=E6=B5=B7=E8=BF=90=E5=87=BA?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/store/modules/user.ts | 12 ++---
src/views/operation/seaexport/index.vue | 68 +------------------------
2 files changed, 6 insertions(+), 74 deletions(-)
diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 8f4859e0..e0369bd0 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -107,6 +107,7 @@ export const useUserStore = defineStore({
if (res !== undefined) {
const token = res?.data
this.setToken(token)
+ return
return this.afterLoginAction(true)
}
} catch (error) {
@@ -117,12 +118,7 @@ export const useUserStore = defineStore({
if (!this.getToken) return null
// get user info
const userInfo = await this.getUserInfoAction()
- // const res: API.DataResult = await getCollectWarningCount()
- // console.log(res)
-
const sessionTimeout = this.sessionTimeout
-
- console.log(sessionTimeout)
if (sessionTimeout) {
this.setSessionTimeout(false)
} else {
@@ -183,7 +179,7 @@ export const useUserStore = defineStore({
this.setToken(undefined)
this.setSessionTimeout(false)
this.setUserInfo(null)
- localStorage.clear()
+ // localStorage.clear()
goLogin && router.push(PageEnum.BASE_LOGIN)
},
@@ -199,9 +195,9 @@ export const useUserStore = defineStore({
content: () => h('span', t('sys.app.logoutMessage')),
onOk: async () => {
await this.logout(true)
- },
+ }
})
- },
+ }
},
})
diff --git a/src/views/operation/seaexport/index.vue b/src/views/operation/seaexport/index.vue
index c66e5672..ca68de08 100644
--- a/src/views/operation/seaexport/index.vue
+++ b/src/views/operation/seaexport/index.vue
@@ -66,8 +66,6 @@
-
-
-
-
-
-->
{{ item.fieldName }}:
{{ item.targetVal }}
@@ -143,10 +137,6 @@
>
{{ item.fieldName }}:
{{ item.reqVal }}
-
{{ item.fieldName }}:
{{ item.targetVal }}
@@ -158,11 +148,10 @@