mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-15 03:07:41 +01:00
perf: ♻️ optimize mirror group tips
This commit is contained in:
parent
cf9c82dcbc
commit
46defbf680
@ -169,13 +169,6 @@ const mirrorGroup = async (serial, { open = 1, ...options } = {}) => {
|
||||
title,
|
||||
args,
|
||||
exec: true,
|
||||
}).catch((error) => {
|
||||
console.warn(
|
||||
'mirrorGroup.error',
|
||||
error?.message
|
||||
|| error?.cause?.message
|
||||
|| `display-id-${displayId}: Open failed`,
|
||||
)
|
||||
})
|
||||
|
||||
results.push(promise)
|
||||
|
@ -49,9 +49,15 @@ export default {
|
||||
})
|
||||
|
||||
console.log('handleMirror.res', res)
|
||||
|
||||
res.forEach((item) => {
|
||||
if (item.status === 'rejected') {
|
||||
throw item.reason || item
|
||||
}
|
||||
})
|
||||
}
|
||||
catch (error) {
|
||||
console.warn(error.message)
|
||||
console.warn('error.message', error.message)
|
||||
if (error?.message || error?.cause?.message) {
|
||||
this.$message.warning(error?.message || error?.cause?.message)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user