mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
fix get user info card
This commit is contained in:
@@ -64,7 +64,7 @@ function renderIcon(icon: unknown) {
|
||||
}
|
||||
const menuOptions = ref<MenuOption[]>()
|
||||
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) => {
|
||||
const data = await respone.json()
|
||||
if (data.code == 0) {
|
||||
|
||||
@@ -264,7 +264,7 @@ onUnmounted(() => {
|
||||
</NCard>
|
||||
<template v-if="item.answer" #footer>
|
||||
<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 />
|
||||
<NText style="font-size: 16px">
|
||||
{{ item.answer?.message }}
|
||||
|
||||
@@ -153,4 +153,3 @@ export const Config: TemplateConfig<ConfigType> = {
|
||||
</NSpace>
|
||||
</template>
|
||||
</template>
|
||||
import { QueryGetAPI } from '@/api/query' import { USER_INDEX_API_URL } from '@/data/constants'
|
||||
|
||||
Reference in New Issue
Block a user