文件路径修改

This commit is contained in:
2026-06-04 10:25:18 +08:00
parent 7ecc69df5e
commit ee9e2c403c
3 changed files with 6 additions and 4 deletions
@@ -1927,7 +1927,8 @@ async function downloadFile(filePath, fileName = "附件") {
return;
}
try {
const arrayBuffer = await downloadLaunchFile(filePath);
const resp = await downloadLaunchFile(filePath);
const arrayBuffer = resp.data;
const blob = new Blob([arrayBuffer]);
const url = window.URL.createObjectURL(blob);
const link = document.createElement("a");
@@ -1019,7 +1019,8 @@ async function fetchTemplateBuffer(templateFilePath) {
return cached.slice(0);
}
const arrayBuffer = await downloadTemplateFile(templateFilePath);
const resp = await downloadTemplateFile(templateFilePath);
const arrayBuffer = resp.data;
const buffer =
arrayBuffer instanceof ArrayBuffer ? arrayBuffer : arrayBuffer?.buffer;
templateBufferCache.set(templateFilePath, buffer);
+2 -2
View File
@@ -528,8 +528,8 @@ function handleDownloadSigned(row) {
message.warning("暂无签署文件可下载");
return;
}
downloadLaunchFile(filePath).then((arrayBuffer) => {
const blob = new Blob([arrayBuffer]);
downloadLaunchFile(filePath).then((res) => {
const blob = new Blob([res.data]);
const url = window.URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;