jinx 1 year ago
parent
commit
4fb4aa9a5a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/tables/index.vue

+ 1 - 1
src/views/tables/index.vue

@@ -180,7 +180,7 @@ const getLayoutImage = async () => {
       const blob = await new Promise<Blob>((resolve) => {
         return canvas.toBlob(resolve, "image/jpeg", 0.95);
       });
-      await downloadImage(blob, `tables_${index}.jpg`);
+      await downloadImage(blob, `tables_${new Date().getTime()}.jpg`);
       Message.success({ msg: "已保存至相册", time: 2000 });
       num++;