From 8681bbd0bbf7084cca70ab99ec60413cf6547cd8 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 31 Jan 2026 14:32:29 +0800
Subject: [PATCH] feat: 跳转修改

---
 applications/task-work-order/src/axios.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/applications/task-work-order/src/axios.js b/applications/task-work-order/src/axios.js
index eb97e97..1a6e862 100644
--- a/applications/task-work-order/src/axios.js
+++ b/applications/task-work-order/src/axios.js
@@ -153,16 +153,16 @@
 					removeRefreshToken()
 					const env = import.meta.env.VITE_APP_ENV
 					// 重定向到登录页
-					// store.dispatch('FedLogOut').then(() => router.push({
-					// 	path: '/login'
-					// }));
-					env === 'development'
-						? store.dispatch('FedLogOut').then(() =>
-								router.push({
-									path: '/login',
-								})
-						  )
-						: store.dispatch('FedLogOut').then(() => window.location.replace(`${adminUrl}#/login`))
+					store.dispatch('FedLogOut').then(() => router.push({
+						path: '/login'
+					}));
+					// env === 'development'
+					// 	? store.dispatch('FedLogOut').then(() =>
+					// 			router.push({
+					// 				path: '/login',
+					// 			})
+					// 	  )
+					// 	: store.dispatch('FedLogOut').then(() => window.location.replace(`${adminUrl}#/login`))
 					return Promise.reject(new Error(message))
 				})
 		}

--
Gitblit v1.9.3