mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-14 18:57:40 +01:00
perf: ♻️ Optimize mirror group
This commit is contained in:
parent
0c9d36fddb
commit
cf9c82dcbc
@ -171,7 +171,7 @@ const mirrorGroup = async (serial, { open = 1, ...options } = {}) => {
|
||||
exec: true,
|
||||
}).catch((error) => {
|
||||
console.warn(
|
||||
'error',
|
||||
'mirrorGroup.error',
|
||||
error?.message
|
||||
|| error?.cause?.message
|
||||
|| `display-id-${displayId}: Open failed`,
|
||||
|
@ -39,7 +39,7 @@ export default {
|
||||
this.loading = true
|
||||
|
||||
try {
|
||||
await this.$scrcpy.mirrorGroup(this.device.id, {
|
||||
const res = await this.$scrcpy.mirrorGroup(this.device.id, {
|
||||
open,
|
||||
title: ({ displayId }) =>
|
||||
`${this.device.$remark ? `${this.device.$remark}-` : ''}${
|
||||
@ -47,6 +47,8 @@ export default {
|
||||
}-${this.device.id}-display-${displayId}`,
|
||||
args: this.scrcpyArgs(this.device.id),
|
||||
})
|
||||
|
||||
console.log('handleMirror.res', res)
|
||||
}
|
||||
catch (error) {
|
||||
console.warn(error.message)
|
||||
|
Loading…
Reference in New Issue
Block a user