From a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 20:49:12 +0800
Subject: [PATCH] feat:事件弹窗显示调整
---
src/layout/index.vue | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/layout/index.vue b/src/layout/index.vue
index d240e08..f713ab7 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -12,17 +12,13 @@
import { onMounted } from 'vue';
import cesiumOperation from '@/utils/cesium-tsa';
import Header from './Header.vue';
-
-const { _init } = cesiumOperation();
const narrowScreen = ref(false)
-
const narrowScreenFun = () => {
// 监听窗口变化,计算是不是 窄屏幕
narrowScreen.value = window.innerWidth / window.innerHeight < 16 / 9;
};
onMounted(() => {
- _init('cesium');
narrowScreenFun()
window.addEventListener('resize', narrowScreenFun);
});
--
Gitblit v1.9.3