This commit is contained in:
2025-07-12 11:57:29 +08:00
parent 7b74e7a331
commit fa6472abac

View File

@@ -3,7 +3,11 @@
<view class="self_info_row"></view>
<view class="info_card">
<my-avatar :src="selfInfo.faceURL" :desc="selfInfo.nickname" size="46" />
<my-avatar
:src="selfInfo.faceURL || '/static/images/default_avatar.png'"
:desc="selfInfo.nickname"
size="46"
/>
<view class="id_row">
<text class="nickname">{{ selfInfo.nickname }}</text>
@@ -77,7 +81,9 @@ export default {
},
computed: {
selfInfo() {
return this.$store.getters.storeSelfInfo;
const info = this.$store.getters.storeSelfInfo;
console.log('头像URL:', info.faceURL); // 添加这行调试
return info;
},
},
methods: {