16 lines
428 B
Vue
16 lines
428 B
Vue
<script setup lang="ts">
|
|
import BasicInfo from '~/components/BasicInfo.vue';
|
|
const avatarURL = ref('');
|
|
useSystemStore().currentPage = 'home';
|
|
onMounted(async () => {
|
|
try {
|
|
avatarURL.value = (await useUserStore().getAvatarURL())!;
|
|
} catch (e) {
|
|
await MessagePlugin.error(e as string);
|
|
}
|
|
});
|
|
</script>
|
|
<template>
|
|
<BasicInfo :avatar-url="avatarURL" :data="useUserStore().$state" />
|
|
</template>
|