Commit 8c283f3a by 冒粤蓉

improve menu

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