[bugfix] Popup: get-container error when destoryed (#2679)

This commit is contained in:
neverland
2019-02-03 11:50:39 +08:00
committed by GitHub
parent 583f89f09d
commit d20b7fdcbf

View File

@@ -82,7 +82,7 @@ export default {
beforeDestroy() {
this.close();
if (this.getContainer) {
if (this.getContainer && this.$parent && this.$parent.$el) {
this.$parent.$el.appendChild(this.$el);
}
},