From 7f4a5fbf7cedb206203f99239f74c84c7aa02ace Mon Sep 17 00:00:00 2001 From: lipeng Date: Tue, 11 Jul 2023 15:33:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=8F=AF=E8=A7=86=E5=8C=96?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/function.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/function.js b/src/router/function.js index eba1adf..1e3fd4e 100644 --- a/src/router/function.js +++ b/src/router/function.js @@ -278,9 +278,9 @@ function getViews(path) { var menuToRouter = (menu) => { menu.forEach((e) => { e.name = getName(e.path); - if (e.path.indexOf("#") != -1) { - e.path = e.path.split("#")[1]; - } + // if (e.path.indexOf("#") != -1) { + // e.path = e.path.split("#")[1]; + // } if (e.children && e.menuType == 0) { // 其他层级作为文件夹,只提供父级 e.component = () => import("../page/parent/parent.vue"); -- 2.26.0