Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sts网站
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
liyang
sts网站
Commits
98bb78a9
Commit
98bb78a9
authored
May 22, 2020
by
北风
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整空格同步格式
parent
ff074998
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
327 additions
and
317 deletions
+327
-317
index.vue
ruoyi-ui/src/layout/components/Sidebar/index.vue
+44
-44
index.vue
ruoyi-ui/src/layout/components/TagsView/index.vue
+283
-273
No files found.
ruoyi-ui/src/layout/components/Sidebar/index.vue
View file @
98bb78a9
ruoyi-ui/src/layout/components/TagsView/index.vue
View file @
98bb78a9
...
@@ -100,7 +100,10 @@ export default {
...
@@ -100,7 +100,10 @@ export default {
});
});
}
}
if
(
route
.
children
)
{
if
(
route
.
children
)
{
const
tempTags
=
this
.
filterAffixTags
(
route
.
children
,
route
.
path
);
const
tempTags
=
this
.
filterAffixTags
(
route
.
children
,
route
.
path
);
if
(
tempTags
.
length
>=
1
)
{
if
(
tempTags
.
length
>=
1
)
{
tags
=
[...
tags
,
...
tempTags
];
tags
=
[...
tags
,
...
tempTags
];
}
}
...
@@ -109,7 +112,9 @@ export default {
...
@@ -109,7 +112,9 @@ export default {
return
tags
;
return
tags
;
},
},
initTags
()
{
initTags
()
{
const
affixTags
=
(
this
.
affixTags
=
this
.
filterAffixTags
(
this
.
routes
));
const
affixTags
=
(
this
.
affixTags
=
this
.
filterAffixTags
(
this
.
routes
));
for
(
const
tag
of
affixTags
)
{
for
(
const
tag
of
affixTags
)
{
// Must have tag name
// Must have tag name
if
(
tag
.
name
)
{
if
(
tag
.
name
)
{
...
@@ -132,7 +137,10 @@ export default {
...
@@ -132,7 +137,10 @@ export default {
this
.
$refs
.
scrollPane
.
moveToTarget
(
tag
);
this
.
$refs
.
scrollPane
.
moveToTarget
(
tag
);
// when query is different then update
// when query is different then update
if
(
tag
.
to
.
fullPath
!==
this
.
$route
.
fullPath
)
{
if
(
tag
.
to
.
fullPath
!==
this
.
$route
.
fullPath
)
{
this
.
$store
.
dispatch
(
"tagsView/updateVisitedView"
,
this
.
$route
);
this
.
$store
.
dispatch
(
"tagsView/updateVisitedView"
,
this
.
$route
);
}
}
break
;
break
;
}
}
...
@@ -167,7 +175,9 @@ export default {
...
@@ -167,7 +175,9 @@ export default {
});
});
},
},
closeAllTags
(
view
)
{
closeAllTags
(
view
)
{
this
.
$store
.
dispatch
(
"tagsView/delAllViews"
).
then
(({
visitedViews
})
=>
{
this
.
$store
.
dispatch
(
"tagsView/delAllViews"
)
.
then
(({
visitedViews
})
=>
{
if
(
this
.
affixTags
.
some
(
tag
=>
tag
.
path
===
view
.
path
))
{
if
(
this
.
affixTags
.
some
(
tag
=>
tag
.
path
===
view
.
path
))
{
return
;
return
;
}
}
...
...
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