perf: 输入引导。导出数据编码格式。列表数字被隐藏

This commit is contained in:
archer
2023-04-11 16:32:07 +08:00
parent aaa350a13e
commit 915b104b8a
6 changed files with 16 additions and 7 deletions

View File

@@ -125,7 +125,7 @@ export const fileDownload = ({
filename: string;
}) => {
// 导出为文件
const blob = new Blob([text], { type: `${type};charset=utf-8` });
const blob = new Blob([`\uFEFF${text}`], { type: `${type};charset=utf-8;` });
// 创建下载链接
const downloadLink = document.createElement('a');