fix lunbo

This commit is contained in:
DESKTOP-FUDKNA8\znjsz 2024-01-26 16:38:23 +08:00
parent 259752291c
commit 086be4da66

View File

@ -13,7 +13,7 @@ import { useSettings } from "./store/settings";
const props = defineProps(["path"]); const props = defineProps(["path"]);
const pages = ['3d', 'data', 'realtime', 'alert'] const pages = ['3d', 'data', 'realtime', 'alert', 'announcement']
const currentPage = ref("3d"); const currentPage = ref("3d");
const handlePageChange = (page) => { const handlePageChange = (page) => {
currentPage.value = page; currentPage.value = page;
@ -44,19 +44,19 @@ store.$subscribe((mutation, state) => {
}) })
// // //
// onMounted(() => { onMounted(() => {
// const settings = store.settings; const settings = store.settings;
// if (settings.carousel) { if (settings.carousel) {
// // //
// if (timer.value) clearInterval(timer.value); if (timer.value) clearInterval(timer.value);
// timer.value = setInterval(() => { timer.value = setInterval(() => {
// handlePageChange(pages[(pages.indexOf(currentPage.value) + 1) % pages.length]) handlePageChange(pages[(pages.indexOf(currentPage.value) + 1) % pages.length])
// }, settings.carouselTime * 1000); }, settings.carouselTime * 1000);
// } }
// // //
// handleResolutionChange(settings.resolution.width, settings.resolution.height); handleResolutionChange(settings.resolution.width, settings.resolution.height);
// }) })
const pathMap = { const pathMap = {