From ccc31b2ad0376bd60bb77a5d2da5f70d7f18a4d4 Mon Sep 17 00:00:00 2001 From: s1431_z_w <15596413+s1431zw@user.noreply.gitee.com> Date: Mon, 18 Aug 2025 15:14:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=97=A5=E5=B8=B8=E4=BA=8B=E5=8A=A1?= =?UTF-8?q?=E4=B8=AD=E5=AD=A6=E7=94=9F=E8=AF=81=E8=A1=A5=E5=8A=9E=E5=92=8C?= =?UTF-8?q?=E5=9C=A8=E6=A0=A1=E8=AF=81=E6=98=8E=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/comps/fdy-undo.vue | 14 +++++++++++++- src/views/Home/comps/jwc-undo.vue | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/src/views/Home/comps/fdy-undo.vue b/src/views/Home/comps/fdy-undo.vue index 3c880b2..5d45252 100644 --- a/src/views/Home/comps/fdy-undo.vue +++ b/src/views/Home/comps/fdy-undo.vue @@ -67,6 +67,18 @@ export default { value: 0, url: "/dormitory/stuDormitoryManage/fdys" }, + { + label: "辅导员·学生证补办审核", + name: "xszb", + value: 0, + url: "/routine/sicr/counsellorExamine" + }, + { + label: "辅导员·在校证明审核", + name: "zxzm", + value: 0, + url: "/routine/school/application" + }, { label: "辅导员·任务管理审核", @@ -192,4 +204,4 @@ export default { transform: scale(1.1); } - \ No newline at end of file + diff --git a/src/views/Home/comps/jwc-undo.vue b/src/views/Home/comps/jwc-undo.vue index 5e7ff40..0886d85 100644 --- a/src/views/Home/comps/jwc-undo.vue +++ b/src/views/Home/comps/jwc-undo.vue @@ -87,6 +87,18 @@ export default { value: 0, url: "/hard/gl/xg" } + { + label: "学工·学生证补办审核", + name: "xszb", + value: 0, + url: "/routine/sicr/learningIndustrialProductionAudit" + }, + { + label: "学工·在校证明审核", + name: "zxzm", + value: 0, + url: "/routine/school/learning" + } ] } @@ -180,4 +192,4 @@ export default { transform: scale(1.1); } - \ No newline at end of file + From 14f4e596405d13ed7c13bc0a7797e4fffdcac902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=85=E9=A5=BC?= <2815246336@qq.com> Date: Mon, 18 Aug 2025 17:04:24 +0800 Subject: [PATCH 2/3] =?UTF-8?q?1.=E9=80=80=E5=87=BA=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E6=B8=85=E9=99=A4AI=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 11 +++++++++-- src/utils/auth.js | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index f1d87e8..72ae595 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -3,6 +3,7 @@ import { getTokenKeySessionStorage, removeToken, setTokenKeySessionStorage, + clearAllUserCache, } from "@/utils/auth"; const user = { @@ -92,7 +93,9 @@ const user = { commit("SET_TOKEN", ""); commit("SET_ROLES", []); commit("SET_PERMISSIONS", []); - removeToken(); + commit("SET_USERINFO", {}); + // 清理所有用户相关的缓存数据,包括conversation_id + clearAllUserCache(); resolve(); }) .catch((error) => { @@ -105,7 +108,11 @@ const user = { FedLogOut({ commit }) { return new Promise((resolve) => { commit("SET_TOKEN", ""); - removeToken(); + commit("SET_ROLES", []); + commit("SET_PERMISSIONS", []); + commit("SET_USERINFO", {}); + // 清理所有用户相关的缓存数据,包括conversation_id + clearAllUserCache(); resolve(); }); }, diff --git a/src/utils/auth.js b/src/utils/auth.js index 34a5d8e..2fe05d8 100644 --- a/src/utils/auth.js +++ b/src/utils/auth.js @@ -23,3 +23,28 @@ export function getTokenKeySessionStorage() { export function removeToken() { return Cookies.remove(TokenKey) } + +// 清理sessionStorage中的token +export function removeTokenFromSessionStorage() { + sessionStorage.removeItem(TokenKey) +} + +// 清理AI聊天相关的localStorage数据 +export function clearAIChatCache() { + localStorage.removeItem('conversation_id') + // 可以根据需要添加其他AI聊天相关的缓存清理 +} + +// 清理所有用户相关的缓存数据 +export function clearAllUserCache() { + // 清理token相关 + removeToken() + removeTokenFromSessionStorage() + + // 清理AI聊天缓存 + clearAIChatCache() + + // 清理其他用户相关的localStorage数据 + localStorage.removeItem('userId') + localStorage.removeItem('userName') +} From 48b8aa0769744ffeb447333605a0c0c67b7f4a42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A6=85=E9=A5=BC?= <2815246336@qq.com> Date: Mon, 18 Aug 2025 17:06:34 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8A=A5=E9=94=99=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Home/comps/jwc-undo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Home/comps/jwc-undo.vue b/src/views/Home/comps/jwc-undo.vue index 0886d85..5c7a43b 100644 --- a/src/views/Home/comps/jwc-undo.vue +++ b/src/views/Home/comps/jwc-undo.vue @@ -86,7 +86,7 @@ export default { name: "knzzgl", value: 0, url: "/hard/gl/xg" - } + }, { label: "学工·学生证补办审核", name: "xszb",