提交 61d4b4c4 编写于 作者: Q qiang

fix: saveImageToPhotosAlbum 增加参数校验

上级 f494e3a3
import getRealPath from 'uni-platform/helpers/get-real-path'
export const saveImageToPhotosAlbum = {
filePath: {
type: String,
required: true,
validator (filePath, params) {
params.filePath = getRealPath(filePath)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册