downloadByUrl支持post带参数下载文件
This commit is contained in:
@@ -77,10 +77,7 @@
|
|||||||
|
|
||||||
async function handleDownloadTemplate() {
|
async function handleDownloadTemplate() {
|
||||||
const { ctxAdminPath } = useGlobSetting();
|
const { ctxAdminPath } = useGlobSetting();
|
||||||
downloadByUrl({
|
downloadByUrl({ url: ctxAdminPath + '/${urlPrefix}/importTemplate' });
|
||||||
url: ctxAdminPath + '/${urlPrefix}/importTemplate',
|
|
||||||
target: '_self',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUploadProgress(progressEvent: ProgressEvent) {
|
function onUploadProgress(progressEvent: ProgressEvent) {
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ for(c in table.columnList){
|
|||||||
const { ctxAdminPath } = useGlobSetting();
|
const { ctxAdminPath } = useGlobSetting();
|
||||||
downloadByUrl({
|
downloadByUrl({
|
||||||
url: ctxAdminPath + '/${urlPrefix}/exportData',
|
url: ctxAdminPath + '/${urlPrefix}/exportData',
|
||||||
target: '_self',
|
params: getForm().getFieldsValue(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user