From 0434b4ca7aa1efde198474dbe5d7d64f981f45cd Mon Sep 17 00:00:00 2001 From: RuoYi Date: Mon, 9 Oct 2023 21:26:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/components/HeaderSearch/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/components/HeaderSearch/index.vue b/ruoyi-ui/src/components/HeaderSearch/index.vue index e9d50c2..a01325a 100644 --- a/ruoyi-ui/src/components/HeaderSearch/index.vue +++ b/ruoyi-ui/src/components/HeaderSearch/index.vue @@ -107,7 +107,7 @@ export default { }, // 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 @@ export default { // 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] }