mirror of
https://github.com/MarcZierle/photo-log-frontend.git
synced 2025-04-07 13:04:37 +00:00
fix capture camera image
This commit is contained in:
parent
5c99c45e1b
commit
5401406ca4
@ -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)
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user