路由修改

This commit is contained in:
仲么了
2024-01-05 14:02:22 +08:00
parent b2c3df56dc
commit 5b42718d6f
9 changed files with 83 additions and 56 deletions

View File

@@ -274,6 +274,7 @@ const init = async () => {
const handlerMenu = (data: any) => {
data.forEach((item: any) => {
item.path = item.routeName || item.title
item.name = item.title
item.component = '/src/views/dashboard/index.vue'
@@ -285,8 +286,9 @@ const init = async () => {
})
}
handlerMenu(res.data)
handleAdminRoute(arr)
// handleAdminRoute([...arr, ...res.data])
// handleAdminRoute(arr)
// handleAdminRoute(res.data)
handleAdminRoute([...arr, ...res.data])
// 预跳转到上次路径
if (route.params.to) {