From 031d49e12e6be7cab159969aa6ef658a7251cccf 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, 11 Nov 2024 17:34:55 +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?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-data-magic/model-data-magic-content.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/model-data-magic/model-data-magic-content.vue b/src/components/model-data-magic/model-data-magic-content.vue index 58accfd5..ac3fbcc3 100644 --- a/src/components/model-data-magic/model-data-magic-content.vue +++ b/src/components/model-data-magic/model-data-magic-content.vue @@ -232,7 +232,7 @@ const style_height = computed(() => cubeHeight.value + 'px'); onBeforeMount(() => { if (isEmpty(form.value.data_magic_list)) { - form.value.data_magic_list = magic_list(0); + form.value.data_magic_list = magic_list(form.value?.style_actived || 0); } else { // 历史数据处理一下,避免有新增字段导致报错 form.value.data_magic_list.forEach((item: any) => {