Commit 8c283f3a by 冒粤蓉

improve menu

1 parent b9bcab4c
...@@ -31,6 +31,5 @@ ...@@ -31,6 +31,5 @@
"> 1%", "> 1%",
"last 2 versions", "last 2 versions",
"not dead" "not dead"
], ]
"proxy": "https://baidu.com"
} }
...@@ -63,23 +63,20 @@ export default { ...@@ -63,23 +63,20 @@ export default {
name: curParent.menuName + ' / ' name: curParent.menuName + ' / '
}); });
} }
if(curChildren && curChildren.length > 0) { if(curChildren) {
curChildren.forEach((item, index, arr) => { const nextChildren = curChildren.children;
if(index === arr.length - 1) {
breadCrumbList.push({ breadCrumbList.push({
name: item.menuName, name: nextChildren ? curChildren.menuName + ' / ': curChildren.menuName,
path: item.path, path: curChildren.path,
active: item.active active: curChildren.active
}); });
} else { if(nextChildren) {
breadCrumbList.push({ breadCrumbList.push({
name: item.menuName + ' / ', name: nextChildren.menuName,
path: item.path, path: nextChildren.path,
active: item.active active: nextChildren.active
}); });
} }
});
} }
return breadCrumbList; return breadCrumbList;
}) })
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
const menuTree = [ const menuTree = [
{ {
origin: { origin: {
parentId: 0,
menuName: "设备管理", menuName: "设备管理",
menuNo: 201, menuNo: 201,
type: 1, type: 1,
...@@ -14,7 +13,6 @@ const menuTree = [ ...@@ -14,7 +13,6 @@ const menuTree = [
children: [ children: [
{ {
origin: { origin: {
parentId: 201,
menuName: "ODB管理", menuName: "ODB管理",
menuNo: 20101, menuNo: 20101,
type: 2, type: 2,
...@@ -25,7 +23,6 @@ const menuTree = [ ...@@ -25,7 +23,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 0,
menuName: "系统管理", menuName: "系统管理",
menuNo: 101, menuNo: 101,
type: 1, type: 1,
...@@ -34,7 +31,6 @@ const menuTree = [ ...@@ -34,7 +31,6 @@ const menuTree = [
children: [ children: [
{ {
origin: { origin: {
parentId: 101,
menuName: "用户管理", menuName: "用户管理",
menuNo: 10101, menuNo: 10101,
type: 2, type: 2,
...@@ -43,16 +39,6 @@ const menuTree = [ ...@@ -43,16 +39,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 101,
menuName: "用户组管理",
menuNo: 10102,
type: 2,
path: '/404'
}
},
{
origin: {
parentId: 101,
menuName: "角色管理", menuName: "角色管理",
menuNo: 10103, menuNo: 10103,
type: 2, type: 2,
...@@ -61,7 +47,6 @@ const menuTree = [ ...@@ -61,7 +47,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 101,
menuName: "菜单管理", menuName: "菜单管理",
menuNo: 10104, menuNo: 10104,
type: 2, type: 2,
...@@ -70,7 +55,6 @@ const menuTree = [ ...@@ -70,7 +55,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 101,
menuName: "组织管理", menuName: "组织管理",
menuNo: 10105, menuNo: 10105,
type: 2, type: 2,
...@@ -79,7 +63,6 @@ const menuTree = [ ...@@ -79,7 +63,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 101,
menuName: "字典管理", menuName: "字典管理",
menuNo: 10106, menuNo: 10106,
type: 2, type: 2,
...@@ -88,7 +71,6 @@ const menuTree = [ ...@@ -88,7 +71,6 @@ const menuTree = [
}, },
{ {
origin: { origin: {
parentId: 101,
menuName: "操作日志", menuName: "操作日志",
menuNo: 10107, menuNo: 10107,
type: 2, type: 2,
......
...@@ -37,34 +37,7 @@ module.exports = { ...@@ -37,34 +37,7 @@ module.exports = {
.set("components", resolve("src/components")) .set("components", resolve("src/components"))
.set("config", resolve("src/config")) .set("config", resolve("src/config"))
.set("utils", resolve("src/utils")) .set("utils", resolve("src/utils"))
.set("services", resolve("src/services")); .set("services", resolve("src/services"))
// config.module.rule('fonts')
// .use('url-loader')
// .loader('url-loader')
// .options({
// limit: 4096, // 小于4kb将会被打包成 base64
// fallback: {
// loader: 'file-loader',
// options: {
// name: 'fonts/[name].[hash:8].[ext]',
// publicPath
// }
// }
// })
// .end();
// config.module.rule('images')
// .use('url-loader')
// .loader('url-loader')
// .options({
// limit: 4096, // 小于4kb将会被打包成 base64
// fallback: {
// loader: 'file-loader',
// options: {
// name: 'img/[name].[hash:8].[ext]',
// publicPath
// }
// }
// })
}, },
css: { css: {
loaderOptions: { loaderOptions: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!