|
@@ -159,7 +159,7 @@ function buildRoute(route, parentUrl = '', bool = true) {
|
|
|
item.meta.roleItems = roleItems
|
|
|
|
|
|
if (!pages.find(ite => ite.path === item.path)) {
|
|
|
- item.path = `${item.path}${bool ? '' : ''}`
|
|
|
+ item.path = `${item.path}${bool?'/:pageType?/:pageCode?/:pagePam?':''}`
|
|
|
pages.push(item)
|
|
|
}
|
|
|
|
|
@@ -181,7 +181,7 @@ function buildRoute(route, parentUrl = '', bool = true) {
|
|
|
item.component = _import(`${fullUrl}/index`)
|
|
|
item.component.name = item.name
|
|
|
if (!pages.find(ite => ite.path === item.path)) {
|
|
|
- item.path = `${item.path}${bool ? '' : ''}`
|
|
|
+ item.path = `${item.path}${bool?'/:pageType?/:pageCode?/:pagePam?':''}`
|
|
|
pages.push(item)
|
|
|
}
|
|
|
|