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("查看全部动态"); },