Skip to content

Commit

Permalink
fix: 修复首页动态无用户数据导致整个动态无法加载的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oustr committed Oct 10, 2023
1 parent 154d027 commit 653d947
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/community/Masonry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@
</view>
<view class="other-info">
<view class="user-info">
<image :src="moment.user.avatarUrl" class="avatar" />
<view class="username font-md">
{{ moment.user.nickname }}
</view>
<template v-if="moment.user">
<image :src="moment.user.avatarUrl" class="avatar" />
<view class="username font-md">
{{ moment.user.nickname }}
</view>
</template>
</view>
<view class="time font-sm">
{{ displayTime(moment.createAt) }}
Expand Down

0 comments on commit 653d947

Please sign in to comment.