We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f436d2 commit 03d1233Copy full SHA for 03d1233
src/components/MultiTab/MultiTab.vue
@@ -33,11 +33,10 @@ export default {
33
this[action](targetKey)
34
},
35
remove (targetKey) {
36
- if (this.pages.length === 1) {
37
- return
38
- }
39
this.pages = this.pages.filter(page => page.fullPath !== targetKey)
40
this.fullPathList = this.fullPathList.filter(path => path !== targetKey)
+ // 跳转到最后一个还存在的标签页
+ this.activeKey = this.fullPathList[this.fullPathList.length - 1]
41
}
42
43
watch: {
0 commit comments