From d553a4be94d4f6ee162cc353a28b220403909cfc Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:58:19 +0800
Subject: [PATCH] ai优化

---
 src/store/modules/user.ts |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 379eb10..7cbb93c 100644
--- a/src/store/modules/user.ts
+++ b/src/store/modules/user.ts
@@ -3,6 +3,7 @@
 import { getAccessToken, removeToken } from '@/utils/auth'
 import { CACHE_KEY, useCache, deleteUserCache } from '@/hooks/web/useCache'
 import { getInfo, loginOut } from '@/api/login'
+import { releaseBedOnExit } from '@/utils/releaseBed'
 
 const { wsCache } = useCache()
 
@@ -79,6 +80,11 @@
       wsCache.set(CACHE_KEY.USER, userInfo)
     },
     async loginOut() {
+      // 鍏堥噴鏀捐瘖鐤楀簥浣嶏紙鍖荤敓甯稿湪銆岃瘖瀹ら�夋嫨銆嶉〉鍗犱簡搴婁綅灏辩洿鎺ラ��鍑虹郴缁燂級銆�
+      // 鍚庣 `/system/auth/logout` 鍐呴儴铏界劧涔熶細绂诲骇锛屼絾锛�
+      //   鈶� 鑻ヨ璇锋眰澶辫触/缃戠粶涓柇锛屽簥浣嶅氨鐣欏湪鍗犵敤鐘舵�侊紱
+      //   鈶� 鏈帴鍙eけ璐ヤ篃涓嶄細闃绘柇閫�鍑烘祦绋嬶紙releaseBedOnExit 鍐呴儴宸插厹搴曪級銆�
+      await releaseBedOnExit('manual-logout')
       await loginOut()
       removeToken()
       deleteUserCache() // 鍒犻櫎鐢ㄦ埛缂撳瓨

--
Gitblit v1.9.3