首页 > 技术文章 > vue 销毁组件
qianxiaoPro 2021-01-06 21:06 原文
// get~ 销毁组件 destroyElement() { this.$destroy(true); this.$el.parentNode.removeChild(this.$el); },