refactor(texttransparentable): add delay to keep text color

This commit is contained in:
07akioni 2019-08-24 02:01:43 +08:00
parent 2a01e47932
commit 107e5c0127

View File

@ -25,6 +25,8 @@ export default {
document.querySelector('head').appendChild(this.cssNode)
},
beforeDestroy () {
document.querySelector('head').removeChild(this.cssNode)
window.setTimeout(() => {
document.querySelector('head').removeChild(this.cssNode)
}, 1000)
}
}