查了官方文档以及源码,Clipboard好像确实没有 .off() 这个方法
This commit is contained in:
parent
35adfcef3f
commit
4f1b585022
|
@ -22,14 +22,10 @@ export default function handleClipboard(text, event) {
|
|||
})
|
||||
clipboard.on('success', () => {
|
||||
clipboardSuccess()
|
||||
clipboard.off('error')
|
||||
clipboard.off('success')
|
||||
clipboard.destroy()
|
||||
})
|
||||
clipboard.on('error', () => {
|
||||
clipboardError()
|
||||
clipboard.off('error')
|
||||
clipboard.off('success')
|
||||
clipboard.destroy()
|
||||
})
|
||||
clipboard.onClick(event)
|
||||
|
|
Loading…
Reference in New Issue