From 71beff1699701e18c2503791c7ba1437c89966aa Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期三, 30 九月 2026 15:26:43 +0800
Subject: [PATCH] feat(wxcp): 活动封面改用附件中间表,并修正附件地址同源
---
src/views/wxcp/activity/data.ts | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/views/wxcp/activity/data.ts b/src/views/wxcp/activity/data.ts
index da4118e..4e883d8 100644
--- a/src/views/wxcp/activity/data.ts
+++ b/src/views/wxcp/activity/data.ts
@@ -85,10 +85,17 @@
help: '濉� 0 琛ㄧず涓嶉檺鍚嶉',
},
{
- fieldName: 'coverUrl',
+ // 灏侀潰璧伴檮浠朵腑闂磋〃锛氳繖閲屾彁浜� blobIds锛屽洖鏄捐 attachmentList锛堣 form.vue 鐨勬槧灏勫嚱鏁帮級
+ fieldName: 'blobIds',
label: '灏侀潰鍥�',
- component: 'Input',
- componentProps: { placeholder: '灏侀潰鍥惧湴鍧�锛堥�夊~锛�', disabled: readonly },
+ component: 'ImageUpload',
+ componentProps: {
+ valueKey: 'id',
+ maxNumber: 1,
+ multiple: false,
+ disabled: readonly,
+ },
+ help: '閫夊~锛屽缓璁� 16:9锛涗繚瀛樺悗灞曠ず鍦ㄦ椿鍔ㄦ姤鍚嶉〉椤堕儴',
formItemClass: 'col-span-2',
},
{
--
Gitblit v1.9.3