Przeglądaj źródła

refactor(premission): 调整QHSE门户跳转进入的地址,跳转到QHSE看板

Zimo 3 dni temu
rodzic
commit
6a98005625

+ 1 - 1
src/layout/components/TagsView/src/helper.ts

@@ -13,7 +13,7 @@ export const filterAffixTags = (routes: AppRouteRecordRaw[], parentPath = '') =>
       route.meta.affix = true
     } else if (currentSource === 'spzx' && tagPath === '/video_center/protocol') {
       route.meta.affix = true
-    } else if (currentSource === 'qhse' && tagPath === '/qhse/measure/ledger') {
+    } else if (currentSource === 'qhse' && tagPath === '/qhse/qhse_kanban') {
       route.meta.affix = true
     } else if (currentSource === 'yyhy' && tagPath === '/operation-meeting/fill') {
       route.meta.affix = true

+ 3 - 3
src/permission.ts

@@ -116,7 +116,7 @@ router.beforeEach(async (to, from, next) => {
 
       if (source && source === 'qhse') {
         sessionStorage.setItem('LOGIN_SOURCE', source as string)
-        next({ path: '/qhse/measure/ledger' })
+        next({ path: '/qhse/qhse_kanban' })
       }
 
       if (source && source === 'yyhy') {
@@ -198,7 +198,7 @@ router.beforeEach(async (to, from, next) => {
 
       if (source && source === 'qhse') {
         sessionStorage.setItem('LOGIN_SOURCE', source as string)
-        next({ path: '/qhse/measure/ledger' })
+        next({ path: '/qhse/qhse_kanban' })
       }
 
       if (source && source === 'yyhy') {
@@ -231,7 +231,7 @@ router.beforeEach(async (to, from, next) => {
       } else if (source && source === 'spzx') {
         next(`/login?redirect=/video_center/protocol`)
       } else if (source && source === 'qhse') {
-        next(`/login?redirect=/qhse/measure/ledger`)
+        next(`/login?redirect=/qhse/qhse_kanban`)
       } else if (source && source === 'yyhy') {
         next(`/login?redirect=/operation-meeting/fill`)
       } else next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页