<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>
