提交
This commit is contained in:
1 parent
246ad2228e
commit
8e2dd8b9f0
186 files changed
+38821
-2571
No files matched your search
@@ -89,13 +89,13 @@ export const useWorktabStore = defineStore(
|
||||
return !tab.fixedTab
|
||||
}
|
||||
|
||||
/**
|
||||
* 过滤不应展示在 worktab 中的父级占位路由。
|
||||
* `/demo` 仅用于承载与重定向,真实标签页为其子路由(如 `/demo/console`)。
|
||||
*/
|
||||
const shouldIgnoreTab = (tab: Partial<WorkTab>): boolean => {
|
||||
return tab.path === '/demo' || tab.path === '/system'
|
||||
}
|
||||
/**
|
||||
* 过滤不应展示在 worktab 中的父级占位路由。
|
||||
* `/system` 仅用于承载与重定向,真实标签页为其子路由(如 `/system/tenant`)。
|
||||
*/
|
||||
const shouldIgnoreTab = (tab: Partial<WorkTab>): boolean => {
|
||||
return tab.path === '/system'
|
||||
}
|
||||
|
||||
/**
|
||||
* 安全的路由跳转
|
||||
|
||||
Reference in new issue
Block a user