Browse Source

fix: 导出文件无后缀问题

zhangjie 1 month ago
parent
commit
84c4afdbcd
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/order/my-task/index.vue

+ 4 - 1
src/views/order/my-task/index.vue

@@ -155,7 +155,10 @@
   );
 
   const download = (record: any) => {
-    downloadByCrossUrl(record.exportFilePath, `${Date.now()}`);
+    downloadByCrossUrl(
+      record.exportFilePath,
+      `${Date.now()}.${record.exportFilePath.split('.').slice(-1)[0]}`
+    );
   };
 
   const summary = ref('');