上传视频sourceType

This commit is contained in:
liuye
2022-06-28 11:16:35 +08:00
parent 660af6cc74
commit 6aa7863083

View File

@@ -112,6 +112,7 @@ export default {
if (this.type == 'image') { if (this.type == 'image') {
uni.chooseImage(params) uni.chooseImage(params)
} else if (this.type == 'video') { } else if (this.type == 'video') {
params.sourceType = ['camera']
uni.chooseVideo(params) uni.chooseVideo(params)
} else { } else {
uni.chooseFile(params) uni.chooseFile(params)