diff --git a/src/core/helpers/protocol/media/save-image-to-photos-album.js b/src/core/helpers/protocol/media/save-image-to-photos-album.js new file mode 100644 index 0000000000000000000000000000000000000000..644896192ec6e485be1633a0ad980c4cd94aab38 --- /dev/null +++ b/src/core/helpers/protocol/media/save-image-to-photos-album.js @@ -0,0 +1,11 @@ +import getRealPath from 'uni-platform/helpers/get-real-path' + +export const saveImageToPhotosAlbum = { + filePath: { + type: String, + required: true, + validator (filePath, params) { + params.filePath = getRealPath(filePath) + } + } +}