|
|
@@ -107,7 +107,7 @@ export default {
|
|
107
|
107
|
},
|
|
108
|
108
|
// Filter out the routes that can be displayed in the sidebar
|
|
109
|
109
|
// And generate the internationalized title
|
|
110
|
|
- generateRoutes(routes, basePath = '/', prefixTitle = [], query = {}) {
|
|
|
110
|
+ generateRoutes(routes, basePath = '/', prefixTitle = []) {
|
|
111
|
111
|
let res = []
|
|
112
|
112
|
|
|
113
|
113
|
for (const router of routes) {
|
|
|
@@ -135,7 +135,7 @@ export default {
|
|
135
|
135
|
|
|
136
|
136
|
// recursive child routes
|
|
137
|
137
|
if (router.children) {
|
|
138
|
|
- const tempRoutes = this.generateRoutes(router.children, data.path, data.title, data.query)
|
|
|
138
|
+ const tempRoutes = this.generateRoutes(router.children, data.path, data.title)
|
|
139
|
139
|
if (tempRoutes.length >= 1) {
|
|
140
|
140
|
res = [...res, ...tempRoutes]
|
|
141
|
141
|
}
|