🐛 Fix frontend

This commit is contained in:
LittleSheep 2024-06-26 17:22:26 +08:00
parent f69f1026d8
commit 7aef153bf3
2 changed files with 3 additions and 4 deletions

View File

@ -32,8 +32,7 @@ async function load() {
emits("update:loading", true) emits("update:loading", true)
await getToken(props.ticket.grant_token) await getToken(props.ticket.grant_token)
await userinfo.readProfiles() await userinfo.readProfiles()
emits("update:loading", false) setTimeout(() => callback(), 1850)
setTimeout(() => callback(), 3000)
} }
onMounted(() => load()) onMounted(() => load())

View File

@ -1,14 +1,14 @@
<template> <template>
<div> <div>
<v-card> <v-card>
<v-img cover class="bg-grey-lighten-2" :height="240" src="/api/users/me/avatar" /> <v-img cover class="bg-grey-lighten-2" :height="240" src="/api/users/me/banner" />
<v-card-text class="flex gap-3.5 px-5 pb-5"> <v-card-text class="flex gap-3.5 px-5 pb-5">
<v-avatar <v-avatar
color="grey-lighten-2" color="grey-lighten-2"
icon="mdi-account-circle" icon="mdi-account-circle"
class="rounded-card" class="rounded-card"
image="/api/users/me/banner" image="/api/users/me/avatar"
:size="54" :size="54"
/> />
<div> <div>