From 4393e3d9a70c008d337be8029c1ccd84afdb90d6 Mon Sep 17 00:00:00 2001 From: Megghy Date: Thu, 5 Sep 2024 16:27:35 +0800 Subject: [PATCH] fix get user info card --- src/views/ViewerLayout.vue | 2 +- src/views/view/QuestionBoxView.vue | 2 +- src/views/view/indexTemplate/DefaultIndexTemplate.vue | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/ViewerLayout.vue b/src/views/ViewerLayout.vue index a6f9605..b20db0b 100644 --- a/src/views/ViewerLayout.vue +++ b/src/views/ViewerLayout.vue @@ -64,7 +64,7 @@ function renderIcon(icon: unknown) { } const menuOptions = ref() 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) { diff --git a/src/views/view/QuestionBoxView.vue b/src/views/view/QuestionBoxView.vue index 934df33..a46e394 100644 --- a/src/views/view/QuestionBoxView.vue +++ b/src/views/view/QuestionBoxView.vue @@ -264,7 +264,7 @@ onUnmounted(() => { -import { QueryGetAPI } from '@/api/query' import { USER_INDEX_API_URL } from '@/data/constants'