提交 b9f8f924 编写于 作者: 张磊

修改提示显示不全的问题

上级 cb3411c9
...@@ -13,23 +13,24 @@ ...@@ -13,23 +13,24 @@
export default { export default {
data() { data() {
return { return {
} }
}, },
methods: { methods: {
saveImage() { saveImage() {
uni.saveImageToPhotosAlbum({ uni.saveImageToPhotosAlbum({
filePath:"/static/uni.png", filePath: "/static/uni.png",
success() { success() {
uni.showToast({ uni.showToast({
icon:"none", position: "center",
title:"图片保存成功,请到相册查看" icon: "none",
title: "图片保存成功,请到相册查看"
}) })
}, },
fail(e) { fail(e) {
uni.showToast({ uni.showToast({
icon:"none", position: "center",
title:"图片保存失败,"+JSON.stringify(e) icon: "none",
title: "图片保存失败,code:" + e.errCode + ",message:" + e.errMsg
}) })
} }
}) })
...@@ -39,5 +40,4 @@ ...@@ -39,5 +40,4 @@
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册