From 1431bf346b8d9ea0153310d77aca82b9f13cf823 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Thu, 11 Mar 2021 01:20:26 +0500 Subject: [PATCH] feat: cancel command --- pages/scan.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/scan.vue b/pages/scan.vue index 4fd9d93..5273009 100644 --- a/pages/scan.vue +++ b/pages/scan.vue @@ -91,6 +91,7 @@ + Cancel @@ -616,6 +617,10 @@ export default { // console.log('res: ', res); }, + async cancelTask() { + this.socket.emit('cancel', {}); + }, + auth() { if (this.socket.connected && this.$store.state.user?.uid && this.isNeedAuth) { this.isNeedAuth = false;