From c1e0c945ec7c6d14873faa707cdde41f0599ee98 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 16 Mar 2026 11:05:08 +0800
Subject: [PATCH] Merge branch 'master' of http://139.196.74.78:10010/r/jagzwxm/ja_web
---
applications/drone-command/src/utils/util.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/applications/drone-command/src/utils/util.js b/applications/drone-command/src/utils/util.js
index 4876764..4ff3644 100644
--- a/applications/drone-command/src/utils/util.js
+++ b/applications/drone-command/src/utils/util.js
@@ -500,7 +500,7 @@
a = null
}
// 统一退出登录
-export async function logOutFun(next) {
+export async function logOutFun() {
// 延迟导入 store 和 router,避免循环依赖:
// auth.js → router → store → user.js → auth.js
const { default: store } = await import('@/store')
@@ -509,7 +509,7 @@
store.dispatch('LogOut').then(() => {
const isDev = VITE_APP_ENV === 'development'
if (isDev) {
- next ? next() : router.push({ path: '/login' })
+ router.push({ path: '/login' })
setTimeout(() => location.reload())
} else {
window.location.replace(`${VITE_APP_PARENT_SYSTEM}/#/login`)
--
Gitblit v1.9.3