Commit 5be8575b authored by kingwl's avatar kingwl

Tabs: fix a 'activeName' attribute init bug

parent af4bca8a
......@@ -72,8 +72,9 @@
}
},
mounted() {
this.currentName = this.activeName || this.$children[0].index || '1';
this.$nextTick(() => {
this.currentName = this.activeName || this.$children[0].index || '1';
this.$forceUpdate();
});
},
render(h) {
......
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