Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-pc
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
何远江
topsun-baoshen-pc
Commits
ee873212
Commit
ee873212
authored
Nov 02, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 修改
parent
119554f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
resource.svg
src/icons/resource.svg
+1
-0
BasicSubMenuItem.vue
src/layouts/default/menu/components/BasicSubMenuItem.vue
+2
-5
No files found.
src/icons/resource.svg
0 → 100644
View file @
ee873212
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1698904532465"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"4102"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"81"
height=
"81"
><path
d=
"M987.83277073 661.34071344l-89.2723425-45.82777219a11.94530343 11.94530343 0 0 0-5.55754501-1.31857406h-1.25996999a11.94530343 11.94530343 0 0 0-5.79195843 1.5529875l-61.69949532 35.03499937a16.08660281 16.08660281 0 0 0-1.95344343 1.27950469 6.40729312 6.40729312 0 0 0-2.82272532 5.45010562 10.0895325 10.0895325 0 0 0 0.39068907 3.06690564v0.0781378a11.48624438 11.48624438 0 0 0 5.80172531 6.75891281l40.12371843 20.83346907a11.94530343 11.94530343 0 0 1 0.22464563 21.08741625l-350.19371625 191.43740906a11.94530343 11.94530343 0 0 1-11.23229719 0.11720625L154.56238198 719.09425344a11.94530343 11.94530343 0 0 1-0.43952437-20.96044219l44.02083656-25.267785c1.05485906-0.60556688 1.36741031-0.80091188 2.27576062-1.34787562 4.56128906-2.76412219 4.08269531-6.71007655 4.03386-7.18867032s-0.28324969-5.09848594-3.90688593-7.36447968c-0.60556688-0.37115438-0.64463625-0.39068812-1.31857407-0.7618425l-62.07064968-34.00944188a11.94530343 11.94530343 0 0 0-5.86032843-1.46508187h-1.33810876a11.94530343 11.94530343 0 0 0-5.36220094 1.32834093l-92.26110937 47.47843125a41.59856719 41.59856719 0 0 0 0.62510156 73.36154907l459.80139938 245.45010562a32.944815 32.944815 0 0 0 17.93260687 3.52596469h0.78137719c6.83705062-0.05860313 13.5959625-0.17581031 17.30750437-3.28178344a13.22480906 13.22480906 0 0 1 2.119485-1.386945l457.61354438-252.48250031a40.30929469 40.30929469 0 0 0 21.58554468-35.36708438c0-0.97672125-0.0976725-0.52742999-0.0781378-1.54321968 0.263715-11.57414906-4.38547969-26.84030625-22.20087938-36.45124594z m0 0"
p-id=
"4103"
></path><path
d=
"M987.83277073 462.40208375l-89.2723425-45.83753906a11.94530343 11.94530343 0 0 0-5.55754501-1.31857407h-1.25996999a11.94530343 11.94530343 0 0 0-5.79195843 1.5529875l-61.70926313 35.02523157a16.08660281 16.08660281 0 0 0-1.9534425 1.27950562 6.40729312 6.40729312 0 0 0-2.82272531 5.45010563 10.0895325 10.0895325 0 0 0 0.39068906 3.06690562v0.07813781a11.48624438 11.48624438 0 0 0 5.80172531 6.75891282l40.13348531 20.85300281a11.94530343 11.94530343 0 0 1 0.22464563 21.08741719l-350.19371625 191.43740812a11.94530343 11.94530343 0 0 1-11.23229719 0.11720625L154.56238198 520.15562469a11.94530343 11.94530343 0 0 1-0.43952437-20.96044313l44.02083656-25.26778406c1.05485906-0.60556688 1.36741031-0.80091188 2.27576062-1.34787562 4.56128906-2.76412219 4.08269531-6.71007655 4.03386-7.18867032s-0.28324969-5.09848594-3.90688593-7.36447968c-0.60556688-0.37115438-0.64463625-0.39068812-1.31857407-0.76184344l-62.07064968-34.00944094a11.94530343 11.94530343 0 0 0-5.86032843-1.46508281h-1.33810876a11.94530343 11.94530343 0 0 0-5.36220094 1.32834094l-92.26110937 47.47843126a41.59856719 41.59856719 0 0 0 0.62510156 73.36154999l459.80139938 245.45010562a32.944815 32.944815 0 0 0 17.93260687 3.52596469h0.78137719c6.83705062-0.05860313 13.5959625-0.17581031 17.30750437-3.28178438a13.22480906 13.22480906 0 0 1 2.119485-1.386945l457.61354438-252.54110344a40.30929469 40.30929469 0 0 0 21.58554468-35.36708437c0-0.97672125-0.0976725-0.52742999-0.0781378-1.54321969 0.263715-11.57414906-4.38547969-26.84030625-22.20087938-36.45124594z m0 0"
p-id=
"4104"
></path><path
d=
"M29.81551573 341.91372311l457.67214749 249.38629314a32.96434969 32.96434969 0 0 0 18.29399251 3.65293875c7.29610969 0 14.6508225 0 18.29399344-3.65293875L985.39096761 341.91372311a41.59856719 41.59856719 0 0 0 0-73.36154998L531.43036198 37.49894188a33.20853001 33.20853001 0 0 0-36.59775375-1e-8L33.5172898 268.55217312A40.30929469 40.30929469 0 0 0 11.51175542 305.21829687c-3.65293875 14.6508225 7.35471281 29.30164406 18.29399344 36.64659001z"
p-id=
"4105"
></path></svg>
\ No newline at end of file
src/layouts/default/menu/components/BasicSubMenuItem.vue
View file @
ee873212
<
template
>
<BasicMenuItem
v-if=
"
(!menuHasChildren && getShowMenu) || oneChildren
"
v-bind=
"$props"
/>
<BasicMenuItem
v-if=
"
!menuHasChildren && getShowMenu
"
v-bind=
"$props"
/>
<SubMenu
v-if=
"menuHasChildren && getShowMenu"
:key=
"`submenu-$
{item.path}`"
...
...
@@ -36,13 +36,10 @@ export default defineComponent({
},
setup
(
props
)
{
const
getShowMenu
=
computed
(()
=>
!
props
.
item
.
meta
?.
hideMenu
)
const
oneChildren
=
computed
(()
=>
props
.
item
?.
children
?.
length
===
1
)
const
menuHasChildren
=
computed
(()
=>
props
.
item
?.
children
&&
props
.
item
?.
children
.
length
>
1
)
const
menuHasChildren
=
computed
(()
=>
props
.
item
?.
children
&&
props
.
item
?.
children
.
length
>
0
)
return
{
getShowMenu
,
oneChildren
,
menuHasChildren
}
}
...
...
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