Commit 059d8b5f by Sendya

fix: permission directive timeout remove.

parent 1a6e5720
......@@ -93,13 +93,7 @@ const action = Vue.directive('action', {
actions = p.actionList
})
if (actions.indexOf(actionName) < 0) {
setTimeout(() => {
if (el.parentNode == null) {
el.style.display = 'none'
} else {
el.parentNode.removeChild(el)
}
}, 10)
el.parentNode && el.parentNode.removeChild(el) || (el.style.display = 'none')
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment