From 2fc8c351ae867f76fed1a720ab126878106d83cc Mon Sep 17 00:00:00 2001 From: xinnix Date: Mon, 23 Jun 2025 10:59:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=20onConfig=20?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8=E5=8D=95=E9=A1=B9=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=97=A0=E6=B3=95=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit import-btn里只提交了 upload 的数据,所以自定义表单项虽然展现出来了,但这个数据并不包含在提交的数据里。 --- src/plugins/excel/components/import-btn.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/excel/components/import-btn.vue b/src/plugins/excel/components/import-btn.vue index 811cf1c..99d0bae 100644 --- a/src/plugins/excel/components/import-btn.vue +++ b/src/plugins/excel/components/import-btn.vue @@ -275,7 +275,10 @@ function open() { } if (props.onSubmit) { - props.onSubmit(upload, { done, close }); + props.onSubmit({ + ...upload, + ..._ + }, { done, close }); } else { ElMessage.error(t('[cl-import-btn] onSubmit is required')); done();