Skip to content

Commit

Permalink
fix: 获取用户信息接口
Browse files Browse the repository at this point in the history
  • Loading branch information
orangelckc committed Sep 26, 2023
1 parent 70312b5 commit a98dfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/api/bilibili.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ const validateLoginInfoApi = async () =>

// 获取用户信息
const getUserInfoApi = async () =>
await getQueryData(`${BASE_URL_PREFIX}/nav`, {
query: { mid: (await getStore(LOGIN_INFO.uid)) },
await getQueryData(`${BASE_URL_PREFIX}/x/web-interface/nav`, {
headers: {
cookie: await getStore(LOGIN_INFO.cookie)
},
Expand Down
2 changes: 1 addition & 1 deletion src/views/Robot/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ onMounted(() => {
<q-header elevated>
<q-toolbar>
<q-avatar>
<q-img :src="userInfo.avatar" spinner-color="white" v-if="userInfo.avatar"/>
<q-img :src="userInfo.avatar" spinner-color="white" v-if="userInfo.avatar" />
<span class="i-carbon-user-avatar-filled-alt h-10 w-10" v-else></span>
</q-avatar>
<q-toolbar-title data-tauri-drag-region class="hover:cursor-move">
Expand Down

0 comments on commit a98dfb3

Please sign in to comment.