Skip to content

Commit

Permalink
fix:修复显示和隐藏关注列表会请求两次数据的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
FWiiii committed Oct 11, 2023
1 parent 5c7d02f commit 5f6d760
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<el-button class="search-btn" icon="el-icon-search" circle @click="submitKw()" size="small"></el-button>
</div>
<div class="top-follow">
<el-dropdown v-if="isLogin == 'true'" trigger="click" placement="bottom-end" @visible-change = "refreshRoomList()">
<el-dropdown v-if="isLogin == 'true'" trigger="click" placement="bottom-end" @visible-change = "refreshRoomList">
<div>关注列表</div>
<el-dropdown-menu class="top-follow-menu" slot="dropdown">
<el-dropdown-item v-if="showFollowLoading" v-loading="topFollowLoading" style="height: 80px;"></el-dropdown-item>
Expand Down Expand Up @@ -368,7 +368,10 @@ export default {
this.$router.push({ name: 'search', query:{ keyWord : searchInput } })
}
},
refreshRoomList(){
refreshRoomList(e) {
if(e !== true) {
return
}
this.roomListOn = []
this.initRoomList(this.userInfo.uid)
},
Expand Down

0 comments on commit 5f6d760

Please sign in to comment.