Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
- 屏蔽了剪贴板提示 close #334
Browse files Browse the repository at this point in the history
  • Loading branch information
dushixiang committed May 3, 2023
1 parent 87c39f1 commit 69d9bb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/components/access/Guacd.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ const Guacd = () => {

const handleClipboardReceived = (stream, mimetype) => {
if (session['copy'] === '0') {
message.warn('禁止复制');
// message.warn('禁止复制');
return
}

Expand All @@ -240,7 +240,7 @@ const Guacd = () => {
if (navigator.clipboard) {
await navigator.clipboard.writeText(data);
}
message.success('您选择的内容已复制到您的粘贴板中,在右侧的输入框中可同时查看到。');
// message.success('您选择的内容已复制到您的粘贴板中,在右侧的输入框中可同时查看到。');
};
} else {
let reader = new Guacamole.BlobReader(stream, mimetype);
Expand Down Expand Up @@ -272,7 +272,7 @@ const Guacd = () => {
}

if (data.data && data.data.length > 0) {
message.info('您输入的内容已复制到远程服务器上');
// message.info('您输入的内容已复制到远程服务器上');
}
}

Expand Down

0 comments on commit 69d9bb0

Please sign in to comment.