this.$set

This commit is contained in:
sanjayk03-dev
2024-01-22 23:28:35 +05:30
parent 43e39ace2c
commit 7b7089a328

View File

@@ -59,10 +59,10 @@ module.exports = {
const text = (await response.text()).split(" ").join("\n");
console.log(text);
// this.newGcode[this.tab - 1]=text;
Vue.set(this.newGcode,this.tab-1,text);
this.$set(this.newGcode,this.tab-1,text);
} else {
// this.newGcode[this.tab - 1]="";
Vue.set(this.newGcode,this.tab-1,"");
this.$set(this.newGcode,this.tab-1,"");
}
console.log("newGcode: ",this.newGcode[this.tab - 1]);
},