Skip to content

Commit 0049580

Browse files
committed
fix(SPA): 参与话题的人数据错误的问题
1 parent 8ad5f07 commit 0049580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/spa/src/page/topic/TopicDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ export default {
149149
},
150150
async fetchParticipants () {
151151
const users = this.topic.participants || []
152-
if (!users.length) return
152+
if (!users.length) return (this.participants = [])
153153
const params = { id: users.join(','), limit: 4 }
154154
const data = await this.$store.dispatch('user/getUserList', params)
155155
this.participants = data

0 commit comments

Comments
 (0)