From a9f2eaef3a9f0b3cdfb9d23f2f76aeb624214d5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Tue, 20 Jun 2023 16:28:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=8F=9C=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E2=80=9C/aaa/vvv/#/ccc=E2=80=9D=E8=BD=AC=E5=8C=96?= =?UTF-8?q?=E4=B8=BA/ccc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/function.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/router/function.js b/src/router/function.js index 84308b3..eba1adf 100644 --- a/src/router/function.js +++ b/src/router/function.js @@ -278,6 +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.children && e.menuType == 0) { // 其他层级作为文件夹,只提供父级 e.component = () => import("../page/parent/parent.vue"); -- 2.26.0