fix(src/views/user): 修复报错

duizhaopin_ui
duan 2 years ago
parent cd3bf44e57
commit 4dad586639

@ -444,10 +444,10 @@ export default {
this.img_src = buffer.toString('base64') this.img_src = buffer.toString('base64')
const count = Math.floor(Math.random() * 10 + 1) const count = Math.floor(Math.random() * 10 + 1)
// //
if (count < 7) { if (count < 3) {
this.img_list.push('data:image/png;base64,' + this.img_src) this.img_list.push('data:image/png;base64,' + this.img_src)
} }
if (this.img_list.length > 200 && this.rflag) { if (this.img_list.length > 10 && this.rflag) {
const data = { const data = {
'images': this.img_list, 'images': this.img_list,
'user_id': row.user_id 'user_id': row.user_id
@ -553,17 +553,6 @@ export default {
this.play = null this.play = null
this.rflag = false this.rflag = false
this.dialogFaceVisible = false this.dialogFaceVisible = false
this.videoObj.srcObject.getTracks()[0].stop()
},
//
success(stream) {
this.videoObj.srcObject = stream
this.videoObj.play()
},
//
error(error) {
//
console.log(`访问用户媒体设备失败${error.name}, ${error.message}`)
} }
} }
} }

Loading…
Cancel
Save