From c6516634b31e2c316d6edc346a94741e9a4f3134 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 7 Jul 2020 16:56:47 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9bug=20link=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E6=95=B0=E6=8D=AE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=A4=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/page/config/system.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/page/config/system.vue b/nezha-fronted/src/components/page/config/system.vue index bcd693142..dd06a2c83 100644 --- a/nezha-fronted/src/components/page/config/system.vue +++ b/nezha-fronted/src/components/page/config/system.vue @@ -629,6 +629,7 @@ this.link.push(response.data[response.data.length-1]); this.linkReserved.push(response.data[response.data.length-1]); this.$store.commit('setLinkData',this.link); + console.log('1111111'); }); }, // link edit @@ -650,7 +651,7 @@ if(response.code == 200){ let index=this.link.findIndex((item1)=>item.id==item1.id); this.$set(this.link,index,{...this.link[index],isEdit:false}); - this.linkReserved=this.link; + this.linkReserved=[...this.link]; this.$store.commit('setLinkData',this.link); this.$message({duration: 2000, type: 'success', message: this.$t("tip.saveSuccess")}); }else{