<template>
  <div>
    <h2>控制台</h2>
    <p>欢迎，{{ userStore.userInfo?.nickname }}</p>
    <el-row :gutter="20" style="margin-top: 20px;">
      <el-col :span="8">
        <el-card><el-statistic title="我的文章" :value="0" /></el-card>
      </el-col>
      <el-col :span="8">
        <el-card><el-statistic title="总浏览量" :value="0" /></el-card>
      </el-col>
      <el-col :span="8">
        <el-card><el-statistic title="获赞数" :value="0" /></el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup>
import { useUserStore } from '@/stores/user'
const userStore = useUserStore()
</script>
