更新 DefaultIndexTemplate.vue,修复头像和用户信息的绑定

This commit is contained in:
2025-03-28 12:09:40 +08:00
parent 24f1c413c4
commit 891a922ab1

View File

@@ -96,8 +96,8 @@ export const Config: TemplateConfig<ConfigType> = {
vertical vertical
> >
<NAvatar <NAvatar
v-if="biliInfo" v-if="accountInfo.streamerInfo"
:src="biliInfo?.face" :src="accountInfo.streamerInfo.faceUrl"
:size="width > 750 ? 175 : 100" :size="width > 750 ? 175 : 100"
round round
bordered bordered
@@ -114,14 +114,14 @@ export const Config: TemplateConfig<ConfigType> = {
strong strong
style="font-size: 32px" style="font-size: 32px"
> >
{{ biliInfo?.name }} {{ userInfo?.name }}
</NText> </NText>
<NText <NText
strong strong
style="font-size: 20px" style="font-size: 20px"
depth="3" depth="3"
> >
({{ userInfo?.name }}) ({{ userInfo?.streamerInfo?.name }})
</NText> </NText>
</NSpace> </NSpace>
<NText <NText
@@ -129,7 +129,7 @@ export const Config: TemplateConfig<ConfigType> = {
depth="3" depth="3"
style="font-size: medium" style="font-size: medium"
> >
{{ userInfo?.biliId }} {{ userInfo.streamerInfo?.uId }}
</NText> </NText>
<NText <NText
strong strong