fix get user info card

This commit is contained in:
2024-09-05 16:27:35 +08:00
parent 403bbc4040
commit 4393e3d9a7
3 changed files with 2 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ function renderIcon(icon: unknown) {
} }
const menuOptions = ref<MenuOption[]>() const menuOptions = ref<MenuOption[]>()
async function RequestBiliUserData() { async function RequestBiliUserData() {
await fetch(FETCH_API + `https://account.bilibili.com/api/member/getCardByMid?mid=${userInfo.value?.biliId}`).then( await fetch(FETCH_API + `https://workers.vrp.moe/api/bilibili/user-info/${userInfo.value?.biliId}`).then(
async (respone) => { async (respone) => {
const data = await respone.json() const data = await respone.json()
if (data.code == 0) { if (data.code == 0) {

View File

@@ -264,7 +264,7 @@ onUnmounted(() => {
</NCard> </NCard>
<template v-if="item.answer" #footer> <template v-if="item.answer" #footer>
<NSpace align="center" :size="6" :wrap="false"> <NSpace align="center" :size="6" :wrap="false">
<NAvatar :src="biliInfo.face + '@64w'" circle :size="45" :img-props="{ referrerpolicy: 'no-referrer' }" /> <NAvatar :src="biliInfo?.face + '@64w'" circle :size="45" :img-props="{ referrerpolicy: 'no-referrer' }" />
<NDivider vertical /> <NDivider vertical />
<NText style="font-size: 16px"> <NText style="font-size: 16px">
{{ item.answer?.message }} {{ item.answer?.message }}

View File

@@ -153,4 +153,3 @@ export const Config: TemplateConfig<ConfigType> = {
</NSpace> </NSpace>
</template> </template>
</template> </template>
import { QueryGetAPI } from '@/api/query' import { USER_INDEX_API_URL } from '@/data/constants'