From c8cbe7f38d16de1692d638008808c3ddc460c3d5 Mon Sep 17 00:00:00 2001 From: QMZ <1164250597@qq.com> Date: Tue, 10 Dec 2024 23:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E5=86=8D=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/community/trends.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/community/trends.vue b/src/views/community/trends.vue index cff3bfde..397af28b 100644 --- a/src/views/community/trends.vue +++ b/src/views/community/trends.vue @@ -245,7 +245,9 @@ else if(this.selectedbypostid){ return this.posts.filter(post => post.postid === this.selectedpostid); } + else return this.posts; + } }, methods: { @@ -259,9 +261,6 @@ alldongtai() { this.selectedbyuserid = false; this.selectedbyuserid =false; - this.selecteduserid = 0; - - this.selectedIndex = -1; this.$message("查看全部动态"); },