From c0dd619944152334adfbc07923f01bcc29966680 Mon Sep 17 00:00:00 2001 From: duan Date: Wed, 7 Sep 2022 17:55:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(index):=20=E4=B8=8D=E8=B0=83=E7=94=A8=20?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/login/index.vue | 6 +++--- src/views/user/index.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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