Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
4f157040
Commit
4f157040
authored
Aug 10, 2023
by
huangjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*
parent
e8da09f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
SidebarItem.vue
dsk-operate-ui/src/layout/components/Sidebar/SidebarItem.vue
+5
-3
No files found.
dsk-operate-ui/src/layout/components/Sidebar/SidebarItem.vue
View file @
4f157040
...
@@ -36,9 +36,11 @@
...
@@ -36,9 +36,11 @@
>
>
<div
class=
"side-container"
>
<div
class=
"side-container"
>
<div
class=
"side-title"
>
<div
class=
"side-title"
>
<app-link
v-if=
"onlyOneChild.meta || item.meta"
:to=
"resolvePath(onlyOneChild.path || item.path)"
>
<!--
<app-link
v-if=
"onlyOneChild.meta || item.meta"
:to=
"resolvePath(onlyOneChild.path || item.path)"
>
-->
<app-link
:to=
"resolvePath(onlyOneChild.path || item.path)"
>
{{
onlyOneChild
.
meta
.
title
||
item
.
meta
.
title
}}
{{
onlyOneChild
.
meta
.
title
||
item
.
meta
.
title
}}
</app-link>
</app-link>
</div>
</div>
</div>
</div>
<item
v-if=
"onlyOneChild.meta"
slot=
"reference"
:icon=
"sideIcon(item, onlyOneChild)"
/>
<item
v-if=
"onlyOneChild.meta"
slot=
"reference"
:icon=
"sideIcon(item, onlyOneChild)"
/>
...
@@ -118,7 +120,7 @@ export default {
...
@@ -118,7 +120,7 @@ export default {
let
tempPath
=
''
let
tempPath
=
''
if
(
onlyOneChild
.
path
)
{
if
(
onlyOneChild
.
path
)
{
tempPath
=
this
.
resolvePath
(
onlyOneChild
.
path
)
tempPath
=
this
.
resolvePath
(
onlyOneChild
.
path
)
if
(
this
.
activeMenu
===
tempPath
&&
onlyOneChild
.
meta
.
icon
!=
'#'
)
{
if
(
this
.
activeMenu
===
tempPath
&&
onlyOneChild
.
meta
.
icon
!=
'#'
)
{
icon
=
onlyOneChild
.
meta
.
icon
+
's'
icon
=
onlyOneChild
.
meta
.
icon
+
's'
}
}
...
@@ -137,7 +139,7 @@ export default {
...
@@ -137,7 +139,7 @@ export default {
icon
=
item
.
meta
.
icon
+
's'
icon
=
item
.
meta
.
icon
+
's'
}
}
}
}
return
icon
return
icon
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment