From 1527c63d373565df8f54ba2681c567eacbef331c Mon Sep 17 00:00:00 2001
From: ssongliu <73214554+ssongliu@users.noreply.github.com>
Date: Fri, 29 Mar 2024 15:50:06 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE?=
=?UTF-8?q?=E5=BA=93=E4=B8=AD=E7=95=8C=E9=9D=A2=E8=AE=BE=E7=BD=AE=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=20(#4355)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/api/index.ts | 3 -
.../src/layout/components/MobileHeader.vue | 2 +-
.../Sidebar/components/Collapse.vue | 2 +-
.../src/layout/components/Sidebar/index.vue | 3 +-
frontend/src/layout/hooks/useResize.ts | 4 +-
frontend/src/layout/index.vue | 27 +++++-
frontend/src/store/index.ts | 91 +------------------
frontend/src/store/interface/index.ts | 7 +-
frontend/src/store/modules/auth.ts | 21 -----
frontend/src/store/modules/global.ts | 89 ++++++++++++++++++
frontend/src/store/modules/menu.ts | 2 +
.../src/views/login/components/login-form.vue | 3 +-
frontend/src/views/setting/license/index.vue | 4 +-
13 files changed, 127 insertions(+), 131 deletions(-)
delete mode 100644 frontend/src/store/modules/auth.ts
create mode 100644 frontend/src/store/modules/global.ts
diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.ts
index d19c2ec9a..98e9fa877 100644
--- a/frontend/src/api/index.ts
+++ b/frontend/src/api/index.ts
@@ -42,9 +42,6 @@ class RequestHttp {
this.service.interceptors.response.use(
(response: AxiosResponse) => {
const { data } = response;
- if (response.headers['x-csrf-token']) {
- globalStore.setCsrfToken(response.headers['x-csrf-token']);
- }
if (data.code == ResultEnum.OVERDUE || data.code == ResultEnum.FORBIDDEN) {
globalStore.setLogStatus(false);
router.push({
diff --git a/frontend/src/layout/components/MobileHeader.vue b/frontend/src/layout/components/MobileHeader.vue
index c929faa84..aded39f1e 100644
--- a/frontend/src/layout/components/MobileHeader.vue
+++ b/frontend/src/layout/components/MobileHeader.vue
@@ -1,5 +1,5 @@
diff --git a/frontend/src/layout/components/Sidebar/components/Collapse.vue b/frontend/src/layout/components/Sidebar/components/Collapse.vue
index 33c58cef8..449762654 100644
--- a/frontend/src/layout/components/Sidebar/components/Collapse.vue
+++ b/frontend/src/layout/components/Sidebar/components/Collapse.vue
@@ -8,7 +8,7 @@
diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue
index 829d4e9dd..463bbee93 100644
--- a/frontend/src/layout/components/Sidebar/index.vue
+++ b/frontend/src/layout/components/Sidebar/index.vue
@@ -33,7 +33,6 @@