Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
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
TFMOM
TF-MOM-WEB
Commits
8e191fbb
Commit
8e191fbb
authored
Sep 11, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tags页签偶尔会出现重复修改
parent
b34796b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
index.vue
...architecture-dee/src/layout/components/TagsView/index.vue
+10
-1
No files found.
applications/architecture-dee/src/layout/components/TagsView/index.vue
View file @
8e191fbb
...
...
@@ -222,7 +222,16 @@ export default {
Object
.
keys
(
this
.
$store
.
state
.
tagsView
.
visitedViews
).
forEach
(
key
=>
{
list
=
[...
list
,
...
this
.
$store
.
state
.
tagsView
.
visitedViews
[
key
]]
})
this
.
$set
(
this
,
'visitedViews'
,
list
.
filter
(
x
=>
(
x
.
path
!==
'/home'
&&
x
.
path
!==
'/businessHome'
&&
x
.
path
!==
'/systemHome'
&&
x
.
path
!==
'/DevopsHome'
&&
x
.
path
!==
'/safeHome'
)))
const
filterViews
=
list
.
filter
(
x
=>
(
x
.
path
!==
'/home'
&&
x
.
path
!==
'/businessHome'
&&
x
.
path
!==
'/systemHome'
&&
x
.
path
!==
'/DevopsHome'
&&
x
.
path
!==
'/safeHome'
))
const
tempViews
=
filterViews
.
reduce
((
acc
,
current
)
=>
{
const
exists
=
acc
.
find
(
item
=>
item
.
title
===
current
.
title
)
if
(
!
exists
)
{
acc
.
push
(
current
)
}
return
acc
},
[])
this
.
$set
(
this
,
'visitedViews'
,
tempViews
)
// this.$set(this, 'visitedViews', list.filter(x => (x.path !== '/home' && x.path !== '/businessHome' && x.path !== '/systemHome' && x.path !== '/DevopsHome' && x.path !== '/safeHome')))
}
},
0
)
},
...
...
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