sync instead of emit for configdata

This commit is contained in:
Bart van der Braak 2020-02-04 23:21:35 +01:00
parent 4c2e9183f0
commit 8a7e2a25b2
2 changed files with 14 additions and 12 deletions

View file

@ -176,15 +176,11 @@ export default {
});
}
},
beforeRouteLeave (to, from, next) {
this.$emit('update',this.configData);
next()
},
created() {
this.setRemember()
},
watch: {
configFile: function () {
configFile() {
if (window.File && window.FileReader && window.FileList && window.Blob) {
this.readFile(this.configFile);
} else {