fix(my): 我的页面添加 userInfo 空值保护,避免未登录时报错

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-05-26 15:56:50 +08:00
co-authored by Claude Sonnet 4.6
parent 2ecb86871b
commit 3efd29c84e
+1 -1
View File
@@ -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>