From 075330899cb82c5f863ceaab948a43d930a55af6 Mon Sep 17 00:00:00 2001 From: sws <1141121512@qq.com> Date: Wed, 6 Nov 2024 16:59:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E7=83=AD=E6=9B=B2=E6=94=B9=E5=8F=98=E6=97=B6?= =?UTF-8?q?,=E7=83=AD=E5=8C=BA=E7=9A=84=E5=A4=A7=E5=B0=8F=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=B7=9F=E7=9D=80=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-hot-zone/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/model-hot-zone/index.vue b/src/components/model-hot-zone/index.vue index 075a97fc..9f078a31 100644 --- a/src/components/model-hot-zone/index.vue +++ b/src/components/model-hot-zone/index.vue @@ -46,6 +46,10 @@ watch( style_container.value = common_styles_computer(new_style.common_style); style_img_container.value = common_img_computer(new_style.common_style); hot_data.value = new_content?.hot?.data || []; + container_ref_h.value = containerRef.value?.clientHeight || 0; + container_ref_w.value = containerRef.value?.clientWidth || 0; + hot_ref_w.value = hotRef.value?.clientWidth || 0; + hot_ref_h.value = hotRef.value?.clientHeight || 0; }, { immediate: true, deep: true } );