¡improve save settigs

This commit is contained in:
Rodrigo Quelca
2021-07-28 15:18:49 +00:00
parent 5bf1c139be
commit d9efa8d1c0
2 changed files with 20 additions and 6 deletions

View File

@@ -117,6 +117,7 @@ export default {
parseInt(window.config.FORMATS.casesListRefreshTime) * 1000
);
},
methods: {
/**
* Listener for iframes childs
@@ -199,12 +200,13 @@ export default {
this.config.setting[this.page] = {};
}
this.config.setting[this.page][prop] = data;
console.log(this.config);
api.config
.put(this.config)
.then((response) => {
if (response.data) {
// this.settings = response.data;
console.log("Udated")
console.log("Updated")
console.log(this.config);
}
})