From 23683d2dd1f5cbe95e73f227333be98fb20fdb49 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, 21 Apr 2025 09:54:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E9=AD=94?= =?UTF-8?q?=E6=96=B9=E6=95=B0=E6=8D=AE=E6=BA=90=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/model-custom-content.vue | 6 +++--- .../model-goods-magic/model-goods-magic-content.vue | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 5f6d4b3d..3dc80dbc 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -50,7 +50,7 @@
数据设置
- + {{ +item === 0 ? '指定数据' : '筛选数据' }} @@ -287,7 +287,7 @@ const data_processing = () => { show_type: custom_config?.show_type || ['vertical', 'vertical-scroll', 'horizontal'], show_number: custom_config?.show_number || [1, 2, 3, 4], data_type: custom_config?.data_type || [0, 1], - is_type_show: custom_config?.is_type_show || true, + is_type_show: custom_config?.is_type_show || '1', }; filter_data_handling('old'); default_data(); @@ -418,7 +418,7 @@ const changeDataSource = (key: string) => { show_type: custom_config?.show_type || ['vertical', 'vertical-scroll', 'horizontal'], show_number: custom_config?.show_number || [1, 2, 3, 4], data_type: custom_config?.data_type || [0, 1], - is_type_show: custom_config?.is_type_show || true, + is_type_show: custom_config?.is_type_show || '1', }; // 默认数据处理 default_data(); diff --git a/src/components/model-goods-magic/model-goods-magic-content.vue b/src/components/model-goods-magic/model-goods-magic-content.vue index a22528c9..68bd3f23 100644 --- a/src/components/model-goods-magic/model-goods-magic-content.vue +++ b/src/components/model-goods-magic/model-goods-magic-content.vue @@ -31,7 +31,7 @@
商品设置
- + {{ +item === 0 ? '指定数据' : '筛选数据' }} @@ -119,7 +119,7 @@ interface custom_config { show_type: string[], show_number: number[], data_type: string[], - is_type_show: boolean, + is_type_show: string, filter_config: object, appoint_config: object, } @@ -141,7 +141,7 @@ const getGoodsmagicinit = () => { GoodsMagicAPI.getGoodsmagicinit().then((res) => { const { data_source } = res.data; options.value = data_source; - goods_source_store.set_data_source(data_source); + goods_source_store.set_goods_source(data_source); // 接口成功之后设置true goods_source_store.set_is_goods_source_api(true); data_processing(); @@ -171,7 +171,7 @@ const data_processing = () => { show_type: custom_config?.show_type || ['vertical', 'vertical-scroll', 'horizontal'], show_number: custom_config?.show_number || [1, 2, 3, 4], data_type: custom_config?.data_type || [0, 1], - is_type_show: custom_config?.is_type_show || true, + is_type_show: custom_config?.is_type_show || '1', }; filter_data_handling('old'); default_data(); @@ -255,7 +255,7 @@ const changeDataSource = (key: string) => { show_type: custom_config?.show_type || ['vertical', 'vertical-scroll', 'horizontal'], show_number: custom_config?.show_number || [1, 2, 3, 4], data_type: custom_config?.data_type || [0, 1], - is_type_show: custom_config?.is_type_show || true, + is_type_show: custom_config?.is_type_show || '1', }; // 默认数据处理 default_data();