fix bugs and errors

This commit is contained in:
F4ilji
2025-05-07 09:33:14 +05:00
parent 8dadd19adc
commit 313eea406b
18 changed files with 1602 additions and 1384 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ export default {
Link,
},
methods: {
...mapActions(['toggleBvi'])
...mapActions(['toggleBvi', 'initializeBvi'])
},
+2 -2
View File
@@ -122,8 +122,8 @@ export default {
window.addEventListener('scroll', this.handleScroll);
// Вызываем action, только если на клиенте и $store доступен
if (typeof window !== 'undefined' && this.$store && this.initializeBvi) {
this.initializeBvi();
if (typeof window !== 'undefined' && this.$store && this.$store.dispatch('initializeBvi')) {
this.$store.dispatch('initializeBvi');
}
},
beforeDestroy() {