Commit a9f2eaef authored by 赵伟庚's avatar 赵伟庚

处理菜单数据“/aaa/vvv/#/ccc”转化为/ccc

parent e887ae72
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment