From a53ece5036c1fa61a63fe5f9e0cd3519210ab928 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 07 Aug 2026 09:44:27 +0800
Subject: [PATCH] feat:兼容分辨率低不出现滚动条
---
applications/task-work-order/src/utils/util.js | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/applications/task-work-order/src/utils/util.js b/applications/task-work-order/src/utils/util.js
index 4062bd2..4bcb341 100644
--- a/applications/task-work-order/src/utils/util.js
+++ b/applications/task-work-order/src/utils/util.js
@@ -508,13 +508,19 @@
const { default: store } = await import('@/store')
const { default: router } = await import('@/router')
const { VITE_APP_PARENT_SYSTEM, VITE_APP_ENV } = import.meta.env
- store.dispatch('LogOut').then(() => {
+
+ const jumpFun = () => {
+ const urlParams = new URLSearchParams(window.location.search);
+ const openDev = urlParams.get('openDev');
const isDev = VITE_APP_ENV === 'development'
- if (isDev) {
+ if (isDev || openDev) {
router.push({ path: '/login' })
- setTimeout(() => location.reload())
+ // setTimeout(() => location.reload())
} else {
window.location.replace(`${VITE_APP_PARENT_SYSTEM}/#/login`)
}
+ }
+ store.dispatch('LogOut').then(() => {
+ jumpFun()
})
}
--
Gitblit v1.9.3