From 42065195ec421f44ccf9549a9d5ef68c0565836e Mon Sep 17 00:00:00 2001 From: thinkgem Date: Wed, 9 Aug 2023 16:45:41 +0800 Subject: [PATCH] =?UTF-8?q?downloadByUrl=E6=94=AF=E6=8C=81post=E5=B8=A6?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=B8=8B=E8=BD=BD=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/modules/gen/crud/vueImport.xml | 5 +---- .../main/resources/templates/modules/gen/crud/vueList.xml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/core/src/main/resources/templates/modules/gen/crud/vueImport.xml b/modules/core/src/main/resources/templates/modules/gen/crud/vueImport.xml index ae252f65..7e9ad132 100644 --- a/modules/core/src/main/resources/templates/modules/gen/crud/vueImport.xml +++ b/modules/core/src/main/resources/templates/modules/gen/crud/vueImport.xml @@ -77,10 +77,7 @@ async function handleDownloadTemplate() { const { ctxAdminPath } = useGlobSetting(); - downloadByUrl({ - url: ctxAdminPath + '/${urlPrefix}/importTemplate', - target: '_self', - }); + downloadByUrl({ url: ctxAdminPath + '/${urlPrefix}/importTemplate' }); } function onUploadProgress(progressEvent: ProgressEvent) { diff --git a/modules/core/src/main/resources/templates/modules/gen/crud/vueList.xml b/modules/core/src/main/resources/templates/modules/gen/crud/vueList.xml index 19f46e19..0de31222 100644 --- a/modules/core/src/main/resources/templates/modules/gen/crud/vueList.xml +++ b/modules/core/src/main/resources/templates/modules/gen/crud/vueList.xml @@ -431,7 +431,7 @@ for(c in table.columnList){ const { ctxAdminPath } = useGlobSetting(); downloadByUrl({ url: ctxAdminPath + '/${urlPrefix}/exportData', - target: '_self', + params: getForm().getFieldsValue(), }); }