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

Merge d0ea7c5de2e9dc6300e7a5c66c418cd842c1b9c9 into 6858a9ad67483025f6a9432a926beb9327037be3

This commit is contained in:
Beck Xun 2024-11-28 00:29:02 +00:00 committed by GitHub
commit 3a9bfd1b58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,7 +61,10 @@ export default {
el.addEventListener('click', handleClick(el, binding), false)
},
update(el, binding) {
el.removeEventListener('click', el[context].removeHandle, false)
const removeHandler = el[context].removeHandle
setTimeout(_ => {
el.removeEventListener('click', removeHandler, false)
})
el.addEventListener('click', handleClick(el, binding), false)
},
unbind(el) {