mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-07 02:57:11 +08:00
chore: 拆分仪表盘路由为工作台和分析页
This commit is contained in:
@@ -25,7 +25,7 @@ let home: RouteLocationMatched | null = null
|
||||
const getHome = () => {
|
||||
if (!home) {
|
||||
const cloneRoutes = JSON.parse(JSON.stringify(routes)) as RouteLocationMatched[]
|
||||
const obj = findTree(cloneRoutes, (i) => i.path === '/home')
|
||||
const obj = findTree(cloneRoutes, (i) => i.path === '/dashboard/workplace')
|
||||
home = obj.item
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user