From a3f920c3aa61a1bbbdf042163ea194f092ae466d Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Wed, 11 Mar 2026 12:12:18 +0800
Subject: [PATCH] feat: 退出登录

---
 applications/task-work-order/src/page/index/useGlobalWS.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/applications/task-work-order/src/page/index/useGlobalWS.js b/applications/task-work-order/src/page/index/useGlobalWS.js
index 009bc8a..c3f986d 100644
--- a/applications/task-work-order/src/page/index/useGlobalWS.js
+++ b/applications/task-work-order/src/page/index/useGlobalWS.js
@@ -3,7 +3,7 @@
 import { useConnectWebSocket } from '@/utils/websocket/connect-websocket'
 import { useStore } from 'vuex'
 import dayjs from 'dayjs'
-import { aLinkDownloadUtil } from '@/utils/util'
+import { aLinkDownloadUtil, logOutFun } from '@/utils/util'
 import EventBus from '@/utils/eventBus'
 import { getStore, setStore } from '@/utils/store'
 
@@ -41,10 +41,7 @@
 
 	const logOut = () => {
 		store.commit('SET_THEME_NAME', '')
-		store.dispatch('LogOut').then(() => {
-			router.push({ path: '/login' })
-			setTimeout(() => location.reload())
-		})
+		logOutFun()
 	}
 	function messageHandler(payload) {
 		switch (payload.biz_code) {

--
Gitblit v1.9.3