diff --git a/pages/API/save-image-to-album/save-image-to-album.uvue b/pages/API/save-image-to-album/save-image-to-album.uvue
index 170780ad2f44300b1fb24bfc94baab61a28e04f2..f0e251274ca9368737724dc40268f7b1da994fd6 100644
--- a/pages/API/save-image-to-album/save-image-to-album.uvue
+++ b/pages/API/save-image-to-album/save-image-to-album.uvue
@@ -1,10 +1,10 @@
-
+
-
+
@@ -13,23 +13,24 @@
export default {
data() {
return {
-
}
},
methods: {
saveImage() {
uni.saveImageToPhotosAlbum({
- filePath:"/static/uni.png",
+ filePath: "/static/uni.png",
success() {
uni.showToast({
- icon:"none",
- title:"图片保存成功,请到相册查看"
+ position: "center",
+ icon: "none",
+ title: "图片保存成功,请到相册查看"
})
},
fail(e) {
uni.showToast({
- icon:"none",
- title:"图片保存失败,"+JSON.stringify(e)
+ position: "center",
+ icon: "none",
+ title: "图片保存失败,code:" + e.errCode + ",message:" + e.errMsg
})
}
})
@@ -39,5 +40,4 @@
+
\ No newline at end of file