this.$set
This commit is contained in:
@@ -59,10 +59,10 @@ module.exports = {
|
|||||||
const text = (await response.text()).split(" ").join("\n");
|
const text = (await response.text()).split(" ").join("\n");
|
||||||
console.log(text);
|
console.log(text);
|
||||||
// this.newGcode[this.tab - 1]=text;
|
// this.newGcode[this.tab - 1]=text;
|
||||||
Vue.set(this.newGcode,this.tab-1,text);
|
this.$set(this.newGcode,this.tab-1,text);
|
||||||
} else {
|
} else {
|
||||||
// this.newGcode[this.tab - 1]="";
|
// 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]);
|
console.log("newGcode: ",this.newGcode[this.tab - 1]);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user