close #1446 Fixed: Adding new from select option has a bug
This commit is contained in:
parent
21b82e2000
commit
790644d9fd
@ -1127,6 +1127,10 @@ export default {
|
|||||||
this.$emit('new', response.data.data);
|
this.$emit('new', response.data.data);
|
||||||
|
|
||||||
this.change();
|
this.change();
|
||||||
|
|
||||||
|
let documentClasses = document.body.classList;
|
||||||
|
|
||||||
|
documentClasses.remove("modal-open");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
@ -1142,6 +1146,10 @@ export default {
|
|||||||
this.add_new.show = false;
|
this.add_new.show = false;
|
||||||
this.add_new.html = null;
|
this.add_new.html = null;
|
||||||
this.add_new_html = null;
|
this.add_new_html = null;
|
||||||
|
|
||||||
|
let documentClasses = document.body.classList;
|
||||||
|
|
||||||
|
documentClasses.remove("modal-open");
|
||||||
},
|
},
|
||||||
|
|
||||||
addModal() {
|
addModal() {
|
||||||
|
@ -825,6 +825,10 @@ export default {
|
|||||||
this.$emit('new', response.data.data);
|
this.$emit('new', response.data.data);
|
||||||
|
|
||||||
this.change();
|
this.change();
|
||||||
|
|
||||||
|
let documentClasses = document.body.classList;
|
||||||
|
|
||||||
|
documentClasses.remove("modal-open");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
@ -840,6 +844,10 @@ export default {
|
|||||||
this.add_new.show = false;
|
this.add_new.show = false;
|
||||||
this.add_new.html = null;
|
this.add_new.html = null;
|
||||||
this.add_new_html = null;
|
this.add_new_html = null;
|
||||||
|
|
||||||
|
let documentClasses = document.body.classList;
|
||||||
|
|
||||||
|
documentClasses.remove("modal-open");
|
||||||
},
|
},
|
||||||
|
|
||||||
addModal() {
|
addModal() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user