const decodeContent = atob(fileResponse.fileContent);/// 需要手动解码
const uint8Array = new Uint8Array(decodeContent.length);for (let i = ; i < decodeContent.length; i++) [uint8Array[i] = decodeContent.charCodeAt(i);
const blob = new Blob([uint8Array]);const filename = fileResponse.filename;const link = document .createElement('a');link.href = URL.createObjectURL(blob);link.download = filename;link.click();
网友评论