fixing errors
This commit is contained in:
@@ -205,15 +205,15 @@ module.exports = {
|
|||||||
gcode_files: async function (){
|
gcode_files: async function (){
|
||||||
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
|
||||||
console.log(files);
|
console.log(files);
|
||||||
this.config.gcodeList=files;
|
// this.config.gcodeList=files;
|
||||||
try {
|
// try {
|
||||||
await api.put("config/save", this.config);
|
// await api.put("config/save", this.config);
|
||||||
console.log("Successfully saved");
|
// console.log("Successfully saved");
|
||||||
this.$dispatch("update");
|
// this.$dispatch("update");
|
||||||
} catch (error) {
|
// } catch (error) {
|
||||||
console.error("Restore Failed: ", error);
|
// console.error("Restore Failed: ", error);
|
||||||
alert("Restore failed");
|
// alert("Restore failed");
|
||||||
}
|
// }
|
||||||
return files;
|
return files;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user