Tabs: fix empty tab-pane issue, fixed #1608 (#1672)

pull/1702/head
杨奕 2016-12-13 10:36:10 +08:00 committed by baiyaaaaa
parent 0ccd537cc8
commit 1db2d64ddc
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@
} }
}, },
mounted() { mounted() {
this.currentName = this.activeName || this.$children[0].index || '1'; this.currentName = this.activeName || this.$children[0] && this.$children[0].index || '1';
this.$nextTick(() => { this.$nextTick(() => {
this.$forceUpdate(); this.$forceUpdate();
}); });