Merge pull request #1101 from Kingwl/master

Tabs: fix a 'activeName' attribute init bug
pull/1104/head
baiyaaaaa 2016-11-16 16:00:01 +08:00 committed by GitHub
commit 73e9e918ae
1 changed files with 2 additions and 1 deletions

View File

@ -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) {