处理非https下navigator.clipboard方法无法获取,导致无法复制黏贴外部文本
This commit is contained in:
parent
3d9d172fa0
commit
5090f21b0e
@ -139,7 +139,6 @@ class Render {
|
|||||||
|
|
||||||
// 绑定事件
|
// 绑定事件
|
||||||
bindEvent() {
|
bindEvent() {
|
||||||
console.log('------------------------')
|
|
||||||
// 画布点击事件清除当前激活节点列表
|
// 画布点击事件清除当前激活节点列表
|
||||||
this.mindMap.on('draw_click', e => {
|
this.mindMap.on('draw_click', e => {
|
||||||
this.clearActiveNodeListOnDrawClick(e, 'click')
|
this.clearActiveNodeListOnDrawClick(e, 'click')
|
||||||
@ -1151,7 +1150,6 @@ class Render {
|
|||||||
}
|
}
|
||||||
// 复制的文本处理逻辑
|
// 复制的文本处理逻辑
|
||||||
if (isText) this.pasteData.text = clipboardData.getData('text')
|
if (isText) this.pasteData.text = clipboardData.getData('text')
|
||||||
console.log(this.pasteData.text,'===-=-=-dasd')
|
|
||||||
this.paste()
|
this.paste()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user