吉安感知网项目-前端
罗广辉
2026-04-01 e884cee3b4caeaa21c9224510ba3f1c63dc0c9ef
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 devLogin = urlParams.get('devLogin');
      const isDev = VITE_APP_ENV === 'development'
      if (isDev) {
      if (isDev || devLogin) {
         router.push({ path: '/login' })
         setTimeout(() => location.reload())
         // setTimeout(() => location.reload())
      } else {
         window.location.replace(`${VITE_APP_PARENT_SYSTEM}/#/login`)
      }
   }
   store.dispatch('LogOut').then(() => {
      jumpFun()
   })
}