From cbd0580f2f30d73fc603bb79fa261b58b7448970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 19 Sep 2024 15:33:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E9=AD=94?= =?UTF-8?q?=E6=96=B9=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-data-magic/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/model-data-magic/index.vue b/src/components/model-data-magic/index.vue index c9387f53..3329dae5 100644 --- a/src/components/model-data-magic/index.vue +++ b/src/components/model-data-magic/index.vue @@ -240,11 +240,12 @@ const old_list = ref({}); const data_magic_list = ref([]); watch(props.value.content, (val) => { const data = cloneDeep(val.data_magic_list); - data.actived_index = 0; data.forEach((item: data_magic) => { const data_content = item.data_content; const data_style = item.data_style; const key = data_style.carouselKey; + // 指示器设置为0 + item.actived_index = 0; // 指示器样式 data_style.indicator_styles = indicator_style(data_style); data_style.background_style = background_style(data_style);