Skip to content

Commit 501f139

Browse files
committed
Merge pull request yuche#151 from sunaiwen/master
feature: update tabset title list when the sub tab is destroyed
2 parents efe6909 + 1ee5483 commit 501f139

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Tab.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ import coerceBoolean from './utils/coerceBoolean.js'
5151
break;
5252
}
5353
}
54+
},
55+
beforeDestroy() {
56+
this.$parent.renderData.splice(this.index, 1);
5457
}
5558
}
5659
</script>

0 commit comments

Comments
 (0)