Commit 1db2d64d authored by 杨奕's avatar 杨奕 Committed by baiyaaaaa

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

parent 0ccd537c
...@@ -82,7 +82,7 @@ ...@@ -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();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment