mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-23 23:21:02 +01:00
fix: 🐛 Repair floating action bar start application error
This commit is contained in:
parent
b2bb0aeb72
commit
487e7e2ec4
@ -10,7 +10,7 @@ export default function (controlWindow) {
|
||||
return {
|
||||
label: item.label,
|
||||
click() {
|
||||
controlWindow.webContents.send(channel, item.value)
|
||||
controlWindow.webContents.send(channel, item.value, item)
|
||||
},
|
||||
}
|
||||
})
|
||||
|
@ -25,6 +25,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { openFloatControl } from '$/utils/device/index.js'
|
||||
import { toRaw } from 'vue'
|
||||
|
||||
export default {
|
||||
props: {
|
||||
device: {
|
||||
@ -80,8 +83,8 @@ export default {
|
||||
|
||||
window.electron.ipcRenderer.once(
|
||||
channel,
|
||||
(event, data) => {
|
||||
this.handleCommand(data)
|
||||
(event, value, item) => {
|
||||
this.handleCommand(item)
|
||||
},
|
||||
)
|
||||
|
||||
@ -103,6 +106,8 @@ export default {
|
||||
|
||||
await window.scrcpy.startApp(this.device.id, { title, commands, packageName: value })
|
||||
|
||||
openFloatControl(toRaw(this.device))
|
||||
|
||||
this.loading = false
|
||||
},
|
||||
},
|
||||
|
@ -72,7 +72,6 @@ export default {
|
||||
window.electron.ipcRenderer.once(
|
||||
channel,
|
||||
(event, data) => {
|
||||
console.log('data')
|
||||
this.handleCommand(data)
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user