diff --git a/src/router/function.js b/src/router/function.js index 84308b3a2fb3cd05c6724557d1ad7769945dfb9b..eba1adf866007b9163d0f9c2c4085f88e5a89773 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");