RuoYi
2023-10-09 0434b4ca7aa1efde198474dbe5d7d64f981f45cd
去掉多余的参数
已修改1个文件
4 ■■■■ 文件已修改
ruoyi-ui/src/components/HeaderSearch/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-ui/src/components/HeaderSearch/index.vue
@@ -107,7 +107,7 @@
    },
    // Filter out the routes that can be displayed in the sidebar
    // And generate the internationalized title
    generateRoutes(routes, basePath = '/', prefixTitle = [], query = {}) {
    generateRoutes(routes, basePath = '/', prefixTitle = []) {
      let res = []
      for (const router of routes) {
@@ -135,7 +135,7 @@
        // recursive child routes
        if (router.children) {
          const tempRoutes = this.generateRoutes(router.children, data.path, data.title, data.query)
          const tempRoutes = this.generateRoutes(router.children, data.path, data.title)
          if (tempRoutes.length >= 1) {
            res = [...res, ...tempRoutes]
          }