From 36ac7b8fa0181581f694119663a435b7226a2265 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, 14 Nov 2024 16:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-custom/model-custom-content.vue | 12 ------------ src/config/const/custom.ts | 3 --- 2 files changed, 15 deletions(-) diff --git a/src/components/model-custom/model-custom-content.vue b/src/components/model-custom/model-custom-content.vue index 8222db60..053af189 100644 --- a/src/components/model-custom/model-custom-content.vue +++ b/src/components/model-custom/model-custom-content.vue @@ -135,22 +135,10 @@ onBeforeMount(() => { }); // 处理显示的图片和传递到下去的数据结构 const model_data_source = ref([]); -const is_show_more = ref(false); const processing_data = (key: string) => { const list = options.value.filter((item) => item.type == key); if (list.length > 0) { model_data_source.value = list[0].data; - if (!isEmpty(list[0].appoint_data)) { - is_show_more.value = false; - } else { - is_show_more.value = true; - // 从中取出包含图片的内容 - const field_list = list[0].data.filter((item) => item.type == 'images'); - // 取出图片的key - if (field_list.length > 0) { - form.img_key = field_list[0].field; - } - } } else { model_data_source.value = []; } diff --git a/src/config/const/custom.ts b/src/config/const/custom.ts index c37adf67..dbdf5017 100644 --- a/src/config/const/custom.ts +++ b/src/config/const/custom.ts @@ -6,7 +6,6 @@ interface content { }interface defaultSearch { content: { height: number; - img_key: string; data_source: string; data_source_content: content; custom_list: string[]; @@ -19,8 +18,6 @@ const defaultSearch: defaultSearch = { content: { // 自定义内容高度 height: 390, - // 图片key - img_key: '', // 数据源内容 data_source_content: { // 存放手动输入的id