chore: 拆分仪表盘路由为工作台和分析页

This commit is contained in:
2024-10-13 23:32:39 +08:00
parent 84ad0d55b0
commit 2e15cf2d48
19 changed files with 33 additions and 8 deletions

View File

@@ -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
}
}