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 @@