处理非https下navigator.clipboard方法无法获取,导致无法复制黏贴外部文本

This commit is contained in:
BlackEyeBear 2024-09-16 22:08:55 +08:00 committed by GitHub
parent 3d9d172fa0
commit 5090f21b0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,7 +139,6 @@ class Render {
// 绑定事件
bindEvent() {
console.log('------------------------')
// 画布点击事件清除当前激活节点列表
this.mindMap.on('draw_click', e => {
this.clearActiveNodeListOnDrawClick(e, 'click')
@ -1151,7 +1150,6 @@ class Render {
}
// 复制的文本处理逻辑
if (isText) this.pasteData.text = clipboardData.getData('text')
console.log(this.pasteData.text,'===-=-=-dasd')
this.paste()
}