Merge pull request #2426 from tugcekucukoglu/refactor

Update TabViewDemo.vue
pull/2427/head
Tuğçe Küçükoğlu 2022-04-08 17:03:43 +03:00 committed by GitHub
commit f4cb741ae4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);