fix capture camera image

This commit is contained in:
MarcZierle 2022-01-25 14:10:56 +01:00
parent 5c99c45e1b
commit 5401406ca4

View File

@ -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)
})