diff --git a/src/views/CameraCapture.vue b/src/views/CameraCapture.vue index 5c013dc..b85a811 100644 --- a/src/views/CameraCapture.vue +++ b/src/views/CameraCapture.vue @@ -227,8 +227,8 @@ export default { this.photo.width = document.getElementById('camera_preview').offsetWidth this.photo.height = document.getElementById('camera_preview').offsetHeight - this.$refs.camera.width = this.photo.width - this.$refs.camera.height = this.photo.height + this.$refs.camera.width = this.stream.width + this.$refs.camera.height = this.stream.height }).catch(error => { this.message.error('Cannot load device camera! '+error) })