fix(ui): guacamole client state display error

This commit is contained in:
LH_R
2025-08-06 19:33:51 +08:00
parent 5cd4e7fb45
commit b6155de89b

View File

@@ -153,14 +153,16 @@ export default {
const tunnel = new Guacamole.WebSocketTunnel(socketLink)
const client = new Guacamole.Client(tunnel)
// clipboard contents received by remote desktop
client.onclipboard = this.handleClipboardReceived
if (this?.assetPermissions?.[PERMISSION_TYPE.COPY]) {
// handle the clipboard content received from the remote desktop.
client.onclipboard = this.handleClipboardReceived
}
// fired whenever the state of this Guacamole.Client changes.
client.onstatechange = (state) => {
this.onClientStateChange(state)
}
client.onerror = this.onError
client.ondisconnect = this.onDisconnect
tunnel.onerror = this.onError