Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
Overview
Overview
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
tianzhuanghu
ant-design-pro-vue
Commits
03d12334
Unverified
Commit
03d12334
authored
Feb 26, 2019
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: multi-tabs close the last tab content redraw. #94
parent
2f436d28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
MultiTab.vue
src/components/MultiTab/MultiTab.vue
+2
-3
No files found.
src/components/MultiTab/MultiTab.vue
View file @
03d12334
...
@@ -33,11 +33,10 @@ export default {
...
@@ -33,11 +33,10 @@ export default {
this
[
action
](
targetKey
)
this
[
action
](
targetKey
)
},
},
remove
(
targetKey
)
{
remove
(
targetKey
)
{
if
(
this
.
pages
.
length
===
1
)
{
return
}
this
.
pages
=
this
.
pages
.
filter
(
page
=>
page
.
fullPath
!==
targetKey
)
this
.
pages
=
this
.
pages
.
filter
(
page
=>
page
.
fullPath
!==
targetKey
)
this
.
fullPathList
=
this
.
fullPathList
.
filter
(
path
=>
path
!==
targetKey
)
this
.
fullPathList
=
this
.
fullPathList
.
filter
(
path
=>
path
!==
targetKey
)
// 跳转到最后一个还存在的标签页
this
.
activeKey
=
this
.
fullPathList
[
this
.
fullPathList
.
length
-
1
]
}
}
},
},
watch
:
{
watch
:
{
...
...
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