소스 검색

去掉多余的参数

RuoYi 2 년 전
부모
커밋
437301d5d9
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
           }