Files
rustdesk-api-web/src/utils/peer.js
T
ljw 3cc460ac8b add url protocol &
add web client on/off by api server
2024-10-14 10:34:40 +08:00

10 lines
251 B
JavaScript

export const connectByClient = (id) => {
//不新开窗口打开url protocol ,格式是 rustdesk://<id>
// window.open(`rustdesk://${row.id}`)
let a = document.createElement('a')
a.href = `rustdesk://${id}`
a.target = '_self'
a.click()
}