1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-06 03:57:53 +08:00

perf[clipboard.js]: remove redundant code (#2307)

This commit is contained in:
MaYuanhai 2019-06-30 11:09:19 +08:00 committed by 花裤衩
parent 35adfcef3f
commit ef167ff064

View File

@ -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)