Browse Source

修改拍照

achao 3 years ago
parent
commit
64324e91d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/mine/settings/editAvatar.vue

+ 1 - 1
pages/mine/settings/editAvatar.vue

@@ -83,7 +83,7 @@
 				} else {
 					uni.chooseImage({
 						count: 1,
-						sourceType: 'camera',
+						sourceType: ['camera'],
 						success: function(res) {
 							console.log(JSON.stringify(res.tempFilePaths));
 							uploadImage(res.tempFilePaths[0], 'appData/',