chenged position to methods

This commit is contained in:
sanjayk03-dev
2024-01-22 15:57:36 +05:30
parent bba76aefb4
commit c5e0d38c40

View File

@@ -201,20 +201,6 @@ module.exports = {
const p = this.plan_time / this.toolpath.time; const p = this.plan_time / this.toolpath.time;
return Math.min(1, p); return Math.min(1, p);
},
gcode_files: async function (){
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
console.log(files);
// this.config.gcodeList=files;
// try {
// await api.put("config/save", this.config);
// console.log("Successfully saved");
// this.$dispatch("update");
// } catch (error) {
// console.error("Restore Failed: ", error);
// alert("Restore failed");
// }
return files;
} }
}, },
@@ -527,6 +513,20 @@ module.exports = {
console.warn("Error running program: ",error); console.warn("Error running program: ",error);
} }
}, },
gcode_files: async function (){
const files=this.state.files.filter(item => !this.config.macrosList.some(compareItem => compareItem.gcode_file_name == item));
console.log(files);
// this.config.gcodeList=files;
// try {
// await api.put("config/save", this.config);
// console.log("Successfully saved");
// this.$dispatch("update");
// } catch (error) {
// console.error("Restore Failed: ", error);
// alert("Restore failed");
// }
return files;
}
}, },
mixins: [ require("./axis-vars") ] mixins: [ require("./axis-vars") ]