作者 RuoYi

去掉多余的参数

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