From 0c5e01f1a8fdfc6ce4d15119d809c77cd53b9454 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Wed, 11 Jan 2017 15:41:23 +0800 Subject: [PATCH] fixed #185 --- src/components/tabs/tabs.vue | 2 +- test/routers/tabs.vue | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) 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 @@