From 56c7a222cf5fba929f285f4ce29c93d5d2de9ed7 Mon Sep 17 00:00:00 2001
From: X1627315083 <1627315083@qq.com>
Date: Thu, 13 Nov 2025 13:19:03 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=AE=A2=E9=98=85=E6=96=B0?=
=?UTF-8?q?=E5=8A=A0=E6=9D=A1=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/component/Account/frontPage.vue | 2 +-
src/store/userHabit/userHabit.ts | 1 -
src/store/workspace/workspace.ts | 4 ++++
src/tool/https.js | 1 +
src/views/HomeMain.vue | 2 +-
src/views/HomeView/history.vue | 6 +-----
6 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/component/Account/frontPage.vue b/src/component/Account/frontPage.vue
index c735153a..6f004078 100644
--- a/src/component/Account/frontPage.vue
+++ b/src/component/Account/frontPage.vue
@@ -6,7 +6,7 @@
-
+
{{item.title}}
diff --git a/src/store/userHabit/userHabit.ts b/src/store/userHabit/userHabit.ts
index f6c51186..946d711a 100644
--- a/src/store/userHabit/userHabit.ts
+++ b/src/store/userHabit/userHabit.ts
@@ -266,7 +266,6 @@ const userHabit : Module = {
// data.systemUser = 0
state.userDetail.affiliate = data.affiliate
state.userDetail.systemUser = data.systemUser
- // state.userDetail.systemUser = 3
// 身份列表1:可以使用aida系统,2:可以使用affiliate页面,3:系统管理员用户
state.userDetail.systemList = []
if(data.systemUser != 0)state.userDetail.systemList.push(1)
diff --git a/src/store/workspace/workspace.ts b/src/store/workspace/workspace.ts
index e74c9ecf..08e975d2 100644
--- a/src/store/workspace/workspace.ts
+++ b/src/store/workspace/workspace.ts
@@ -106,6 +106,10 @@ const Workspace: Module = {
model: [] //模特
}
},
+ createProjectPath(state){
+ state.projectPath = ''
+ state.cachedRoutes = []
+ },
setProjectPath(state, path) {
state.projectPath = path
}
diff --git a/src/tool/https.js b/src/tool/https.js
index c74f825a..3d685414 100644
--- a/src/tool/https.js
+++ b/src/tool/https.js
@@ -117,6 +117,7 @@ axios.interceptors.response.use((res) =>{
message.warning('Please login and try again~')
store.commit('createDetail')
store.commit('createProbject')
+ store.commit('createProjectPath')
setTimeout(()=>[
isLoginTime = false
],2000)
diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue
index 1cdd34af..4f25e4e2 100644
--- a/src/views/HomeMain.vue
+++ b/src/views/HomeMain.vue
@@ -1232,7 +1232,7 @@ export default defineComponent({
this.$router.replace('/')
this.store.commit('createDetail')
this.store.commit('createProbject')
-
+ this.store.commit('createProjectPath')
// WriteCookie("token");
// window.location.reload()
},
diff --git a/src/views/HomeView/history.vue b/src/views/HomeView/history.vue
index c172b58e..9cecb1af 100644
--- a/src/views/HomeView/history.vue
+++ b/src/views/HomeView/history.vue
@@ -454,11 +454,7 @@ export default defineComponent({
// router.push(`/home?history=${data.id}`)
// if(data.id)
if(data.id === this.store.state.Workspace.probjects.id){
- let cachedRoutes = this.store.state.Workspace.cachedRoutes
- for (let i = cachedRoutes.length - 1; i >= 0; i--) {
- cachedRoutes.splice(i, 1);
- }
- this.store.commit('setProjectPath','')
+ this.store.commit('createProjectPath','')
}
// this.getHistoryList()
},