Commit 73e9e918 authored by baiyaaaaa's avatar baiyaaaaa Committed by GitHub

Merge pull request #1101 from Kingwl/master

Tabs: fix a 'activeName' attribute init bug
parents 5203280a 5be8575b
...@@ -72,8 +72,9 @@ ...@@ -72,8 +72,9 @@
} }
}, },
mounted() { mounted() {
this.currentName = this.activeName || this.$children[0].index || '1';
this.$nextTick(() => { this.$nextTick(() => {
this.currentName = this.activeName || this.$children[0].index || '1'; this.$forceUpdate();
}); });
}, },
render(h) { 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