文件路径修改
This commit is contained in:
@@ -1927,7 +1927,8 @@ async function downloadFile(filePath, fileName = "附件") {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const arrayBuffer = await downloadLaunchFile(filePath);
|
const resp = await downloadLaunchFile(filePath);
|
||||||
|
const arrayBuffer = resp.data;
|
||||||
const blob = new Blob([arrayBuffer]);
|
const blob = new Blob([arrayBuffer]);
|
||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
|
|||||||
@@ -1019,7 +1019,8 @@ async function fetchTemplateBuffer(templateFilePath) {
|
|||||||
return cached.slice(0);
|
return cached.slice(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const arrayBuffer = await downloadTemplateFile(templateFilePath);
|
const resp = await downloadTemplateFile(templateFilePath);
|
||||||
|
const arrayBuffer = resp.data;
|
||||||
const buffer =
|
const buffer =
|
||||||
arrayBuffer instanceof ArrayBuffer ? arrayBuffer : arrayBuffer?.buffer;
|
arrayBuffer instanceof ArrayBuffer ? arrayBuffer : arrayBuffer?.buffer;
|
||||||
templateBufferCache.set(templateFilePath, buffer);
|
templateBufferCache.set(templateFilePath, buffer);
|
||||||
|
|||||||
@@ -528,8 +528,8 @@ function handleDownloadSigned(row) {
|
|||||||
message.warning("暂无签署文件可下载");
|
message.warning("暂无签署文件可下载");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
downloadLaunchFile(filePath).then((arrayBuffer) => {
|
downloadLaunchFile(filePath).then((res) => {
|
||||||
const blob = new Blob([arrayBuffer]);
|
const blob = new Blob([res.data]);
|
||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = url;
|
link.href = url;
|
||||||
|
|||||||
Reference in New Issue
Block a user