diff --git a/packages/tabs/src/tabs.vue b/packages/tabs/src/tabs.vue index 62feae59c..aabef15cf 100644 --- a/packages/tabs/src/tabs.vue +++ b/packages/tabs/src/tabs.vue @@ -82,7 +82,7 @@ } }, 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.$forceUpdate(); });