fix lunbo
This commit is contained in:
parent
259752291c
commit
086be4da66
@ -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 = {
|
||||||
|
Loading…
Reference in New Issue
Block a user