修复:解决google play的图片和视频权限要求
This commit is contained in:
@@ -184,24 +184,24 @@ const handleEmojiSelect = (emoji: any) => {
|
||||
/**
|
||||
* 选择图片
|
||||
*/
|
||||
const chooseImage = () => {
|
||||
if (uploadedImages.value.length >= 3) {
|
||||
uni.showToast({
|
||||
title: '最多只能上传3张图片',
|
||||
icon: 'none'
|
||||
})
|
||||
return
|
||||
}
|
||||
// const chooseImage = () => {
|
||||
// if (uploadedImages.value.length >= 3) {
|
||||
// uni.showToast({
|
||||
// title: '最多只能上传3张图片',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
uni.chooseImage({
|
||||
count: 3 - uploadedImages.value.length,
|
||||
sizeType: ['compressed'],
|
||||
sourceType: ['album', 'camera'],
|
||||
success: (res) => {
|
||||
uploadImages(res.tempFilePaths)
|
||||
}
|
||||
})
|
||||
}
|
||||
// uni.chooseImage({
|
||||
// count: 3 - uploadedImages.value.length,
|
||||
// sizeType: ['compressed'],
|
||||
// sourceType: ['album', 'camera'],
|
||||
// success: (res) => {
|
||||
// uploadImages(res.tempFilePaths)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
/**
|
||||
* 上传图片
|
||||
|
||||
Reference in New Issue
Block a user