added tv page, small changes and fix bugs

This commit is contained in:
F4ilji
2025-05-21 14:00:04 +05:00
parent 10ec9a90c7
commit 791a56ca4d
12 changed files with 327 additions and 102 deletions
@@ -155,11 +155,14 @@ export default {
this.sortedSlides = this.slides.slice().sort((a, b) => a.sort - b.sort);
// Передаем данные в Vuex после монтирования компонента
this.updateLastSlider({
url: this.$page.props.ziggy.location,
top: this.$refs.sliderRef.getBoundingClientRect().top,
bottom: this.$refs.sliderRef.getBoundingClientRect().bottom, // Получаем актуальное значение bottom
});
if (typeof window !== 'undefined') {
this.updateLastSlider({
url: this.$page.props.ziggy.location,
top: this.$refs.sliderRef.getBoundingClientRect().top,
bottom: this.$refs.sliderRef.getBoundingClientRect().bottom, // Получаем актуальное значение bottom
});
}
this.startTimer();
},
beforeUnmount() {