From 53718741b57733e5169e33781fab67d90c9eda13 Mon Sep 17 00:00:00 2001 From: zpc Date: Wed, 20 Aug 2025 15:43:24 +0800 Subject: [PATCH] 333 --- common/utils.js | 2 +- pages/index/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/utils.js b/common/utils.js index 5a2d29f..4af6953 100644 --- a/common/utils.js +++ b/common/utils.js @@ -821,7 +821,7 @@ export const saveImageToPhotosAlbum = (image) => { const link = document.createElement("a"); link.href = image; // 如果 image 是 blob url 或 http url,都可以 - link.download = "image_" + Date.now(); // 下载文件名 + link.download = "image_" + Date.now()+".jpg"; // 下载文件名 document.body.appendChild(link); link.click(); document.body.removeChild(link); diff --git a/pages/index/index.vue b/pages/index/index.vue index b1a72d8..c99b19a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -162,7 +162,7 @@