fix(my): 我的页面添加 userInfo 空值保护,避免未登录时报错
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
2ecb86871b
commit
3efd29c84e
@@ -3,7 +3,7 @@
|
||||
<image src="/images/my/header.png" mode=""/>
|
||||
</view>
|
||||
|
||||
<view class="user">
|
||||
<view class="user" wx:if="{{userInfo}}">
|
||||
<view class="user-avatar">{{ userInfo.realname[0] }}</view>
|
||||
<view class="user-info">
|
||||
<view class="user-name">{{ userInfo.realname }}</view>
|
||||
|
||||
Reference in New Issue
Block a user