add url protocol &
add web client on/off by api server
This commit is contained in:
@@ -347,5 +347,8 @@
|
||||
},
|
||||
"CopyFailed": {
|
||||
"One": "Copy Failed"
|
||||
},
|
||||
"Timeout": {
|
||||
"One": "Timeout"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -334,5 +334,8 @@
|
||||
},
|
||||
"CopyFailed": {
|
||||
"One": "复制失败"
|
||||
},
|
||||
"Timeout": {
|
||||
"One": "超时"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
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()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user