diff --git a/common/utils.js b/common/utils.js index f3b55a4..5a2d29f 100644 --- a/common/utils.js +++ b/common/utils.js @@ -20,6 +20,7 @@ export const getLocation = async () => { export const chooseImage = async () => { return new Promise((resolve, reject) => { uni.chooseImage({ + sourceType:['camera'], count: 1, success: (res) => { resolve(res); diff --git a/index.html b/index.html index b5d330d..64d61a8 100644 --- a/index.html +++ b/index.html @@ -2,6 +2,7 @@ +