Browse Source

去掉多余的参数

RuoYi 2 years ago
parent
commit
437301d5d9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ruoyi-ui/src/components/HeaderSearch/index.vue

+ 2 - 2
ruoyi-ui/src/components/HeaderSearch/index.vue

@@ -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
           }