路由修改
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user