|
|
@@ -91,14 +91,13 @@ export function commonExport(url: string, params: any, filename: string) {
|
|
|
link.href = exportUrl;
|
|
|
const nameWithoutExt = filename.substring(0, filename.lastIndexOf('.'));
|
|
|
const ext = filename.substring(filename.lastIndexOf('.'));
|
|
|
- link.download = `${nameWithoutExt}_${dayjs().valueOf()}${ext}`;
|
|
|
+ const time = dayjs().format('YYYY-MM-DD HH:mm:ss');
|
|
|
+ link.download = `${nameWithoutExt}_${time}${ext}`;
|
|
|
document.body.appendChild(link);
|
|
|
link.click();
|
|
|
document.body.removeChild(link);
|
|
|
URL.revokeObjectURL(url);
|
|
|
window.$message?.success('导出成功');
|
|
|
- console.log(res, '导出');
|
|
|
-
|
|
|
resolve(res);
|
|
|
})
|
|
|
.catch(err => {
|