From 4413dc17b26d747e245d5135ba0afaa0f86484d8 Mon Sep 17 00:00:00 2001 From: sc Date: Sat, 18 Sep 2021 15:08:04 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20scFormTable=20=E6=96=B0=E5=A2=9E=E5=A4=8D?= =?UTF-8?q?=E6=9D=82=E7=BB=93=E6=9E=84=E8=A1=8C=E6=97=B6=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B7=B7=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/scFormTable/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/scFormTable/index.vue b/src/components/scFormTable/index.vue index 1da4f58e..dabb9c50 100644 --- a/src/components/scFormTable/index.vue +++ b/src/components/scFormTable/index.vue @@ -79,7 +79,8 @@ }) }, rowAdd(){ - this.data.push({...this.addTemplate}) + const temp = JSON.parse(JSON.stringify(this.addTemplate)) + this.data.push(temp) }, rowDel(row, index){ this.data.splice(index, 1)