vue 销毁组件

// get~ 销毁组件
destroyElement() {
  this.$destroy(true);
  this.$el.parentNode.removeChild(this.$el);
},

  

posted @ 2021-01-06 21:06  浅笑19  阅读(993)  评论(0编辑  收藏  举报