fix(index): 不调用 关闭流

duizhaopin_ui
duan 2 years ago
parent 5dc4fed3d7
commit c0dd619944

@ -106,7 +106,7 @@
import stringify from '@/utils/stringify' import stringify from '@/utils/stringify'
import { faceStart, faceStop, login } from '@/api/user/user' import { faceStart, faceStop, login } from '@/api/user/user'
import { client_list } from '@/api/common' import { client_list } from '@/api/common'
import { throttle } from '@/utils' // import { throttle } from '@/utils'
export default { export default {
name: 'Login', name: 'Login',
@ -159,7 +159,7 @@ export default {
this.sockets.unsubscribe('reco') this.sockets.unsubscribe('reco')
}, },
methods: { methods: {
handleClose: throttle(function() { handleClose: function() {
faceStop().then( faceStop().then(
res => { res => {
// console.log(res) // console.log(res)
@ -167,7 +167,7 @@ export default {
this.rflag = false this.rflag = false
} }
) )
}, 1000), },
handleOpen() { handleOpen() {
this.$forceUpdate() this.$forceUpdate()
faceStart().then(res => { faceStart().then(res => {

@ -530,7 +530,7 @@ export default {
instrument_module_id: [] instrument_module_id: []
} }
}, },
handleFaceCancel: throttle(function() { handleFaceCancel: function() {
faceStop().then( faceStop().then(
res => { res => {
this.dialogFaceVisible = false this.dialogFaceVisible = false
@ -538,7 +538,7 @@ export default {
this.rflag = false this.rflag = false
} }
) )
}, 1000), },
handleCancel() { handleCancel() {
this.play = null this.play = null
this.rflag = false this.rflag = false

Loading…
Cancel
Save