From 7b7089a328ac6d006ce7c7ae33588b7b833a2e47 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Mon, 22 Jan 2024 23:28:35 +0530 Subject: [PATCH] this.$set --- src/js/macros.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/macros.js b/src/js/macros.js index 846e14d..424fec7 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -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]); },