downloadByUrl支持post带参数下载文件

This commit is contained in:
thinkgem
2023-08-09 16:45:41 +08:00
parent 9ca999a90a
commit 42065195ec
2 changed files with 2 additions and 5 deletions

View File

@@ -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) {

View File

@@ -431,7 +431,7 @@ for(c in table.columnList){
const { ctxAdminPath } = useGlobSetting();
downloadByUrl({
url: ctxAdminPath + '/${urlPrefix}/exportData',
target: '_self',
params: getForm().getFieldsValue(),
});
}