<template>
<view><button @click="xiangji">相机</button></view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
xiangji() {
uni.chooseImage({
sourceType: ['camera'],
success: res => {
console.log(res)
}
});
}
},
}
</script>
x***@163.com (作者)
没解决
2022-12-02 15:46