diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue
index 1d5f738..c540efb 100644
--- a/src/components/tabs/tabs.vue
+++ b/src/components/tabs/tabs.vue
@@ -172,7 +172,6 @@
const nav = this.navList[index];
if (nav.disabled) return;
this.activeKey = nav.key;
- this.updateStatus();
this.$emit('on-click', nav.key);
},
handleRemove (index) {
@@ -205,6 +204,7 @@
watch: {
activeKey () {
this.updateBar();
+ this.updateStatus();
}
}
};
diff --git a/test/routers/tabs.vue b/test/routers/tabs.vue
index a5976a6..62dff61 100644
--- a/test/routers/tabs.vue
+++ b/test/routers/tabs.vue
@@ -1,22 +1,21 @@
- add{{more}}
-
- 标签一的内容
- 标签二的内容
- 标签三的内容
- 标签四的内容
+
+ 标签一的内容
+ 标签二的内容
+ 标签三的内容
+ change