From 846bd0e9adb70bb23778045ee1a252a6a58adc4f Mon Sep 17 00:00:00 2001
From: inleft <inleft@qq.com>
Date: Wed, 02 Mar 2022 21:45:39 +0800
Subject: [PATCH] 文件结构调整,日志评论实现

---
 src/components/mini/box12-comment.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/components/mini/box12-comment.vue b/src/components/mini/box12-comment.vue
index da8af57..22e675e 100644
--- a/src/components/mini/box12-comment.vue
+++ b/src/components/mini/box12-comment.vue
@@ -1,12 +1,13 @@
 <template>
-	<div class="myFriend" style="min-height: 950px;">
-		<h1 style="text-align: center;">碎碎念</h1>
-		<replyBox ref="commentBoxId"></replyBox>
+	<div>
+		<replyBox ref="commentBoxId" v-bind="$attrs"></replyBox>
 		<a-modal v-model="visible" :title="replyTaget" :footer="null"
 			:bodyStyle="{'overflow':'overlay','maxHeight': '550px','scrollbarWidth': 'none'}">
-			<replyBox ref="replyBoxId"></replyBox>
+			<replyBox ref="replyBoxId" v-bind="$attrs"></replyBox>
 		</a-modal>
-
+		<div class="mySecret" v-if="commentListData.length==0">
+			<p>空空如也..</p>
+		</div>
 		<div v-for="temp in commentListData" class="commentList">
 
 			<div class="commentGroup">
@@ -98,6 +99,7 @@
 	} from '../../api/blogArticleComment.js'
 
 	export default {
+		props: ["articleId"],
 		components: {
 			replyBox
 		},
@@ -105,7 +107,7 @@
 			queryBlogCommentList({
 				pageNo: this.page.current,
 				pageSize: this.page.pageSize,
-				articleId: this.articleId
+				articleId: this.$attrs.acticleId
 			}).then((res) => {
 				this.page.total = Number(res.data.total)
 				this.page.pageSize = Number(res.data.size);
@@ -119,7 +121,7 @@
 				queryBlogCommentList({
 					pageNo: this.page.current,
 					pageSize: this.page.pageSize,
-					articleId: this.articleId
+					articleId: this.$attrs.articleId
 				}).then((res) => {
 					this.page.total = Number(res.data.total)
 					this.page.pageSize = Number(res.data.size);
@@ -154,7 +156,7 @@
 		},
 		data() {
 			return {
-				articleId: null,
+				// articleId: null,
 				isAllowedComment: true,
 				page: {
 					size: "small",

--
Gitblit v1.9.1