diff --git a/examples/routers/table.vue b/examples/routers/table.vue
index e5cd87be..ed57bce0 100644
--- a/examples/routers/table.vue
+++ b/examples/routers/table.vue
@@ -413,97 +413,289 @@
-
+
+
+
+
+
+
+
+
diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue
index ff0a044d..d99b9066 100644
--- a/src/components/tabs/tabs.vue
+++ b/src/components/tabs/tabs.vue
@@ -155,6 +155,7 @@
updateBar () {
this.$nextTick(() => {
const index = this.navList.findIndex((nav) => nav.name === this.activeKey);
+ if (!this.$refs.nav) return; // 页面销毁时,这里会报错,为了解决 #2100
const prevTabs = this.$refs.nav.querySelectorAll(`.${prefixCls}-tab`);
const tab = prevTabs[index];
this.barWidth = tab ? parseFloat(tab.offsetWidth) : 0;