From 5dfef883049e7f0670f6c6b1b225b233aee41eea Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 03 Mar 2022 01:30:11 +0800 Subject: [PATCH] 评论页刷新策略调整 --- src/components/swichLabel/main6-comment.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/swichLabel/main6-comment.vue b/src/components/swichLabel/main6-comment.vue index 0f66a5b..b15b1f9 100644 --- a/src/components/swichLabel/main6-comment.vue +++ b/src/components/swichLabel/main6-comment.vue @@ -2,7 +2,7 @@ <div class="myFriend" style="min-height: 950px;"> <h1 style="text-align: center;">碎碎念</h1> - <comment></comment> + <comment ref="myComment"></comment> </div> </template> @@ -11,7 +11,10 @@ export default { components: { comment - } + }, + mounted() { + this.$refs.myComment.updateCommentList(null); + }, } </script> -- Gitblit v1.9.1