This commit is contained in:
syuilo
2018-09-15 21:53:04 +09:00
parent 7b2b7d1456
commit 25b0a93acd
20 changed files with 35 additions and 31 deletions

View File

@ -31,9 +31,13 @@ require('./common/views/widgets');
require('./common/views/filters');
Vue.mixin({
destroyed(this: any) {
if (this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el);
methods: {
destroyDom() {
this.$destroy();
if (this.$el.parentNode) {
this.$el.parentNode.removeChild(this.$el);
}
}
}
});