Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
project_progress
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ebda329f
authored
Mar 03, 2025
by
bingobo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新leftbar
1 parent
74c8300b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
8 deletions
src/views/layout/leftBar.vue
src/views/layout/mainLayout.vue
src/views/layout/leftBar.vue
View file @
ebda329
...
...
@@ -21,7 +21,6 @@
</el-menu-item
>
<!-- TODO -->
<!-- 其他菜单项 -->
<template
v-for=
"(item, index) in wholeRoutes.restRoutes"
>
<!-- 无子菜单的菜单项 -->
...
...
@@ -81,7 +80,6 @@
</el-submenu>
</template>
<!-- TODO -->
...
...
src/views/layout/mainLayout.vue
View file @
ebda329
...
...
@@ -783,14 +783,8 @@ export default {
// const routes = res.content.menuList.filter(item => item.name === '立项统筹中心')
const
routes
=
res
.
content
.
menuList
.
filter
(
item
=>
item
.
name
===
'后评估管控中心'
)
const
resRoutes
=
routes
[
0
].
children
;
// console.log(123123, resRoutes);
const
souYeRoute
=
resRoutes
.
filter
((
item
)
=>
item
.
name
===
"首页"
);
const
restRoutes
=
resRoutes
.
filter
((
item
)
=>
item
.
name
!==
"首页"
);
// restRoutes.forEach(val => {
// if (val.name === "项目档案库") {
// val.erji = "二级";
// }
// })
this
.
menuList
=
restRoutes
// console.log(2222, souYeRoute, restRoutes);
this
.
wholeRoutes
=
{
souYeRoute
,
restRoutes
}
...
...
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