diff --git a/src/views/login/index.vue b/src/views/login/index.vue index ba02b67..eea1d4c 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -106,7 +106,7 @@ import stringify from '@/utils/stringify' import { faceStart, faceStop, login } from '@/api/user/user' import { client_list } from '@/api/common' -import { throttle } from '@/utils' +// import { throttle } from '@/utils' export default { name: 'Login', @@ -159,7 +159,7 @@ export default { this.sockets.unsubscribe('reco') }, methods: { - handleClose: throttle(function() { + handleClose: function() { faceStop().then( res => { // console.log(res) @@ -167,7 +167,7 @@ export default { this.rflag = false } ) - }, 1000), + }, handleOpen() { this.$forceUpdate() faceStart().then(res => { diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 0bb3814..74e7002 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -530,7 +530,7 @@ export default { instrument_module_id: [] } }, - handleFaceCancel: throttle(function() { + handleFaceCancel: function() { faceStop().then( res => { this.dialogFaceVisible = false @@ -538,7 +538,7 @@ export default { this.rflag = false } ) - }, 1000), + }, handleCancel() { this.play = null this.rflag = false