菜单名称一致路由404问题
This commit is contained in:
@@ -66,6 +66,9 @@ export function formatTwoStageRoutes(arr: any) {
|
||||
if (v.path === '/') {
|
||||
newArr.push({ component: v.component, name: v.name, path: v.path, redirect: v.redirect, meta: v.meta, children: [] });
|
||||
} else {
|
||||
if (v.id) {
|
||||
v.name=v.name+"_"+v.id;
|
||||
}
|
||||
// 判断是否是动态路由(xx/:id/:name),用于 tagsView 等中使用
|
||||
if (v.path.indexOf('/:') > -1) {
|
||||
v.meta['isDynamic'] = true;
|
||||
|
||||
Reference in New Issue
Block a user