mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-06 18:36: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[]>()
|
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) {
|
||||||
|
|||||||
@@ -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 }}
|
||||||
|
|||||||
@@ -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'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user