fix lunbo
This commit is contained in:
		@@ -13,7 +13,7 @@ import { useSettings } from "./store/settings";
 | 
			
		||||
 | 
			
		||||
const props = defineProps(["path"]);
 | 
			
		||||
 | 
			
		||||
const pages = ['3d', 'data', 'realtime', 'alert']
 | 
			
		||||
const pages = ['3d', 'data', 'realtime', 'alert', 'announcement']
 | 
			
		||||
const currentPage = ref("3d");
 | 
			
		||||
const handlePageChange = (page) => {
 | 
			
		||||
  currentPage.value = page;
 | 
			
		||||
@@ -44,19 +44,19 @@ store.$subscribe((mutation, state) => {
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
// // 检查状态
 | 
			
		||||
// onMounted(() => {
 | 
			
		||||
//   const settings = store.settings;
 | 
			
		||||
//   if (settings.carousel) {
 | 
			
		||||
//     // 开始轮播
 | 
			
		||||
//     if (timer.value) clearInterval(timer.value);
 | 
			
		||||
//     timer.value = setInterval(() => {
 | 
			
		||||
//       handlePageChange(pages[(pages.indexOf(currentPage.value) + 1) % pages.length])
 | 
			
		||||
//     }, settings.carouselTime * 1000);
 | 
			
		||||
//   }
 | 
			
		||||
//   // 设置分辨率
 | 
			
		||||
//   handleResolutionChange(settings.resolution.width, settings.resolution.height);
 | 
			
		||||
// })
 | 
			
		||||
// 检查状态
 | 
			
		||||
onMounted(() => {
 | 
			
		||||
  const settings = store.settings;
 | 
			
		||||
  if (settings.carousel) {
 | 
			
		||||
    // 开始轮播
 | 
			
		||||
    if (timer.value) clearInterval(timer.value);
 | 
			
		||||
    timer.value = setInterval(() => {
 | 
			
		||||
      handlePageChange(pages[(pages.indexOf(currentPage.value) + 1) % pages.length])
 | 
			
		||||
    }, settings.carouselTime * 1000);
 | 
			
		||||
  }
 | 
			
		||||
  // 设置分辨率
 | 
			
		||||
  handleResolutionChange(settings.resolution.width, settings.resolution.height);
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
const pathMap = {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user