Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
98bb78a9
Commit
98bb78a9
authored
May 22, 2020
by
北风
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整空格同步格式
parent
ff074998
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
327 additions
and
317 deletions
+327
-317
ruoyi-ui/src/layout/components/Sidebar/index.vue
ruoyi-ui/src/layout/components/Sidebar/index.vue
+44
-44
ruoyi-ui/src/layout/components/TagsView/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 {
});
}
if
(
route
.
children
)
{
const
tempTags
=
this
.
filterAffixTags
(
route
.
children
,
route
.
path
);
const
tempTags
=
this
.
filterAffixTags
(
route
.
children
,
route
.
path
);
if
(
tempTags
.
length
>=
1
)
{
tags
=
[...
tags
,
...
tempTags
];
}
...
...
@@ -109,7 +112,9 @@ export default {
return
tags
;
},
initTags
()
{
const
affixTags
=
(
this
.
affixTags
=
this
.
filterAffixTags
(
this
.
routes
));
const
affixTags
=
(
this
.
affixTags
=
this
.
filterAffixTags
(
this
.
routes
));
for
(
const
tag
of
affixTags
)
{
// Must have tag name
if
(
tag
.
name
)
{
...
...
@@ -132,7 +137,10 @@ export default {
this
.
$refs
.
scrollPane
.
moveToTarget
(
tag
);
// when query is different then update
if
(
tag
.
to
.
fullPath
!==
this
.
$route
.
fullPath
)
{
this
.
$store
.
dispatch
(
"
tagsView/updateVisitedView
"
,
this
.
$route
);
this
.
$store
.
dispatch
(
"
tagsView/updateVisitedView
"
,
this
.
$route
);
}
break
;
}
...
...
@@ -167,7 +175,9 @@ export default {
});
},
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
))
{
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