Update TabViewDemo.vue

pull/2426/head
Tuğçe Küçükoğlu 2022-04-08 17:03:26 +03:00
parent b39fc431e0
commit e219b1462f
1 changed files with 6 additions and 4 deletions

View File

@ -179,10 +179,12 @@ export default {
mounted() { mounted() {
this.themeChangeListener = () => { this.themeChangeListener = () => {
this.timeout = setTimeout(() => { this.timeout = setTimeout(() => {
this.$refs.tabview1.updateInkBar(); if (this.$refs.tabview1) {
this.$refs.tabview2.updateInkBar(); this.$refs.tabview1.updateInkBar();
this.$refs.tabview3.updateInkBar(); this.$refs.tabview2.updateInkBar();
this.$refs.tabview4.updateInkBar(); this.$refs.tabview3.updateInkBar();
this.$refs.tabview4.updateInkBar();
}
}, 50); }, 50);
}; };
EventBus.on('theme-change', this.themeChangeListener); EventBus.on('theme-change', this.themeChangeListener);