Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-system
/
micro-portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8c283f3a
authored
Nov 05, 2020
by
冒粤蓉
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
improve menu
1 parent
b9bcab4c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
64 deletions
package.json
src/components/DesktopLeftSider/Sub/Menu.vue
src/components/DesktopRightSider/DesktopRightSider.vue
src/config/menuTree.js
vue.config.js
package.json
View file @
8c283f3
...
...
@@ -31,6 +31,5 @@
"> 1%"
,
"last 2 versions"
,
"not dead"
],
"proxy"
:
"https://baidu.com"
]
}
src/components/DesktopLeftSider/Sub/Menu.vue
View file @
8c283f3
This diff is collapsed.
Click to expand it.
src/components/DesktopRightSider/DesktopRightSider.vue
View file @
8c283f3
...
...
@@ -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
;
})
...
...
src/config/menuTree.js
View file @
8c283f3
...
...
@@ -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
,
...
...
vue.config.js
View file @
8c283f3
...
...
@@ -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
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment