chore: 更改命名

This commit is contained in:
dap 2024-10-06 11:18:41 +08:00
parent 7d6f70a75a
commit 55ae01c536

View File

@ -128,7 +128,7 @@ async function handleDownload(record: Recordable<any>) {
const hideLoading = message.loading('下载中...');
try {
const blob = await batchGenCode(record.tableId);
const filename = `代码生成_${record.tableName}_${new Date().toLocaleString()}.zip`;
const filename = `代码生成_${record.tableName}_${dayjs().valueOf()}.zip`;
downloadByData(blob, filename);
} catch (error) {
console.error(error);