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/box13-reply.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/components/mini/box13-reply.vue b/src/components/mini/box13-reply.vue
index 4802fc3..cf40807 100644
--- a/src/components/mini/box13-reply.vue
+++ b/src/components/mini/box13-reply.vue
@@ -59,13 +59,14 @@
 	} from '../../api/blogArticleComment.js'
 
 	export default {
+		props: ["articleId"],
 		methods: {
 			getMsgInfo(param) {
 				this.msgInfo = param;
 				this.showReplyMsgInfo = true;
 				this.replyHolder = "@" + this.msgInfo.useName;
 			},
-			send(articleId) {
+			send() {
 				console.log(this.msgInfo);
 				if (this.form.nickName === "") {
 					this.$message.info("怎么称呼..")
@@ -87,6 +88,8 @@
 						res = false;
 					}
 				});
+				var articleId=this.$attrs.acticleId;
+				console.log(articleId);
 
 				let commentType = (articleId == null || articleId == undefined) ? 1 : 2;
 				this.isSending = true;
@@ -106,9 +109,7 @@
 					"commentContent": this.form.visitorContent,
 				}).then((res) => {
 					this.isSending = false;
-					console.log(111);
 					if (res.code == 200) {
-						console.log(111);
 						this.$message.info("已送达,审核通过后显示..")
 					} else {
 						this.$notification.error({

--
Gitblit v1.9.1