From dbc34d63add3cd05ca9327831509e21d7513a04c Mon Sep 17 00:00:00 2001 From: viarotel Date: Wed, 6 Nov 2024 20:05:48 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E2=99=BB=EF=B8=8F=20When=20the=20appli?= =?UTF-8?q?cation=20fails=20to=20start,=20display=20the=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ControlBar/ApplicationStart/index.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Device/components/ControlBar/ApplicationStart/index.vue b/src/components/Device/components/ControlBar/ApplicationStart/index.vue index f6f4768..82d4fc1 100644 --- a/src/components/Device/components/ControlBar/ApplicationStart/index.vue +++ b/src/components/Device/components/ControlBar/ApplicationStart/index.vue @@ -104,6 +104,13 @@ export default { }) await window.scrcpy.startApp(this.device.id, { title, commands, packageName: value }) + .catch((e) => { + console.error('mirror.commands', commands) + console.error('mirror.error', e) + if (e.message) { + this.$message.warning(e.message) + } + }) openFloatControl(toRaw(this.device))