From 246f87d0db6c73292873999a9a6119b948803f57 Mon Sep 17 00:00:00 2001 From: Shaw <1050429181@qq.om> Date: Thu, 10 Jun 2021 19:08:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E5=88=97=E8=A1=A8=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E4=BF=AE=E5=A4=8D=20=E6=98=B5=E7=A7=B0=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20=E6=97=A5=E6=9C=9F=E5=B1=85=E5=8F=B3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20Comment=E7=BB=84=E4=BB=B6=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=BE=8E=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Comment/Comment.vue | 90 +++++++++++++-------------- src/component/Comment/CommentForm.vue | 4 +- src/component/Comment/CommentItem.vue | 71 +++++++++++++-------- 3 files changed, 90 insertions(+), 75 deletions(-) diff --git a/src/component/Comment/Comment.vue b/src/component/Comment/Comment.vue index bc0020e..dd5aa27 100644 --- a/src/component/Comment/Comment.vue +++ b/src/component/Comment/Comment.vue @@ -1,56 +1,54 @@ diff --git a/src/component/Comment/CommentForm.vue b/src/component/Comment/CommentForm.vue index 3848c34..fa1e2b8 100644 --- a/src/component/Comment/CommentForm.vue +++ b/src/component/Comment/CommentForm.vue @@ -66,10 +66,10 @@ export default { this.$message.success(this.$t("comment.success")); this.commentText = ""; } else { - this.$message.error(this.$t("comment.empty")) + this.$message.error(this.$t("comment.empty")); } } catch (e) { - this.$message.error(this.$t("comment.failed", [e])) + this.$message.error(this.$t("comment.failed", [e])); } finally { this.isLoading = false; } diff --git a/src/component/Comment/CommentItem.vue b/src/component/Comment/CommentItem.vue index b9e66d3..ba48ee3 100644 --- a/src/component/Comment/CommentItem.vue +++ b/src/component/Comment/CommentItem.vue @@ -1,33 +1,50 @@ - -- Gitee