From 296e21dfcf5f2fb28eed1159757bddb15e00f515 Mon Sep 17 00:00:00 2001 From: viarotel Date: Sat, 11 Nov 2023 16:23:32 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20Mirror=20group=20s?= =?UTF-8?q?hutdown=20logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Device/components/ControlBar/MirrorGroup/index.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/Device/components/ControlBar/MirrorGroup/index.vue b/src/components/Device/components/ControlBar/MirrorGroup/index.vue index ce25726b..215959bc 100644 --- a/src/components/Device/components/ControlBar/MirrorGroup/index.vue +++ b/src/components/Device/components/ControlBar/MirrorGroup/index.vue @@ -44,7 +44,8 @@ export default { console.log('handleCommand.command', command) if (command === 'close') { - this.$adb.clearOverlayDisplayDevices(this.device.id) + this.handleStop() + this.loading = false return false } @@ -75,10 +76,12 @@ export default { } } - this.$adb.clearOverlayDisplayDevices(this.device.id) - + this.handleStop() this.loading = false }, + handleStop() { + this.$adb.clearOverlayDisplayDevices(this.device.id) + }, }, }