From 2800fa4f32f3900509cb4d6eefaf2bfaf54efdd7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 21 Apr 2025 18:29:09 +0800
Subject: [PATCH] fix: 天气显示
---
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