optimize Tabs

This commit is contained in:
mo.duan 2019-09-24 12:02:52 +08:00
parent b143ea52eb
commit 551c730771
2 changed files with 32 additions and 14 deletions

View file

@ -217,7 +217,7 @@
if (item.tab === this.name) {
TabPanes.push(item);
}
} else if (this.$children.indexOf(item) !== -1) {
}else if (this.$children.includes(item)) { // #6279 #6299
TabPanes.push(item);
}
});