From 8d5fb24373725387a8a8478f2a2b264f24377306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 4 Nov 2024 15:49:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-nav-group/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/model-nav-group/index.vue b/src/components/model-nav-group/index.vue index 5d43b5ac..cc9b79f4 100644 --- a/src/components/model-nav-group/index.vue +++ b/src/components/model-nav-group/index.vue @@ -101,7 +101,7 @@ const interval_list = ref({ //监听屏幕缩放事件 onMounted(() => { window.onresize = () => { - newHeight.value = bannerImg.value[0].clientHeight + 'px'; + newHeight.value = bannerImg.value[0]?.clientHeight || 100 + 'px'; }; }); // 导航图片大小