From 3c70f700149d34be9dc6c16c8e1892c12ab779f7 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Mon, 24 Oct 2022 15:24:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=99=E8=A8=80=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homepage/leavingMessage.vue | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/views/homepage/leavingMessage.vue b/src/views/homepage/leavingMessage.vue index 561c2a8d..d0bc0f79 100644 --- a/src/views/homepage/leavingMessage.vue +++ b/src/views/homepage/leavingMessage.vue @@ -13,16 +13,15 @@
-

{{item.authorInfo.name}} {{item.authorInfo.sign}}

{{item.content}}

-
回复
+
回复
-
删除
+
删除
@@ -35,12 +34,12 @@
-

{{rep.authorInfo.name}} 1{{rep.authorInfo.sign}}

+

{{rep.authorInfo.name}} {{rep.authorInfo.sign}}

{{rep.content}}

- -
删除
+ +
删除
@@ -103,8 +102,6 @@ }else{ this.$router.push({path:'/404'}) } - console.log(this.userInfo,'userInfo'); - }, methods: { backto(){ @@ -146,13 +143,14 @@ addReplys() { this.replysData.reply.push({ content: this.replysContent, - authorInfo:this.userInfo + authorInfo:this.userInfo, + praises:0, }) this.replysData.reply = JSON.stringify(this.replysData.reply); apiGuestbook.answer(this.replysData).then(res=>{ + this.replysContent = ''; if(res.status == 200) { this.$message.success('留言发布成功'); - // this.leavingList.push() this.leavingList.forEach(item=>{ item.isReplys = false; })