<template>
  <div class="page-root">
    <div class="page" v-if="userStore.userInfo">
      <div>用户名：{{ userStore.userInfo.name }}</div>
      <div>id：{{ userStore.userInfo.id }}</div>
    </div>
  </div>
</template>
<style lang="scss" scoped></style>
<script lang="ts" setup>
import { useUserStore } from '@/stores/user.js';

const userStore = useUserStore();
</script>
