perf: ♻️ When the application fails to start, display the error message

This commit is contained in:
viarotel 2024-11-06 20:05:48 +08:00
parent 11a89a38a1
commit dbc34d63ad

View File

@ -104,6 +104,13 @@ export default {
}) })
await window.scrcpy.startApp(this.device.id, { title, commands, packageName: value }) 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)) openFloatControl(toRaw(this.device))