downloadByUrl支持post带参数下载文件
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -431,7 +431,7 @@ for(c in table.columnList){
|
||||
const { ctxAdminPath } = useGlobSetting();
|
||||
downloadByUrl({
|
||||
url: ctxAdminPath + '/${urlPrefix}/exportData',
|
||||
target: '_self',
|
||||
params: getForm().getFieldsValue(),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user