Image:fix prevent memory leak

pull/22211/head
laoD 2022-11-02 17:54:51 +08:00
parent 00bd2afab5
commit 97902a1920
1 changed files with 3 additions and 3 deletions

View File

@ -322,9 +322,9 @@ export default {
},
destroyed() {
// if appendToBody is true, remove DOM node after destroy
if (this.appendToBody && this.$el && this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el);
}
// if (this.appendToBody && this.$el && this.$el.parentNode) {
// this.$el.parentNode.removeChild(this.$el);
// }
}
};
</script>