From 8b47ed39e00d69d7b9abba70808258bcd456582f Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Tue, 7 Apr 2026 09:37:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(utils):=20=E6=89=A9=E5=B1=95=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=B7=A5=E5=85=B7=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在返回对象中添加展开的原始项目属性 - 保持现有 url、name 和 id 字段的向后兼容性 - 允许传递额外的项目属性到结果对象中 --- src/utils/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/index.js b/src/utils/index.js index 5fa1ed9..628b9ca 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -268,6 +268,7 @@ export function addingPrefixToFile(list, options = {}) { url: FILE_URL + item[pathKey], name: item[nameKey] || getFileName(item[pathKey]), id: item[idKey], + ...item, })); }