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();