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; })