进入界面的调整

This commit is contained in:
dxc
2026-02-04 15:55:20 +08:00
parent c1c525b699
commit 596f366fc4
5 changed files with 170 additions and 52 deletions

View File

@ -3,7 +3,7 @@
<el-card class="welcome-card">
<template #header>
<div class="card-header">
<span class="title">👋 欢迎回来Admin</span>
<span class="title">👋 欢迎回来{{ userStore.username }}</span>
<el-tag type="success">系统运行正常</el-tag>
</div>
</template>
@ -35,10 +35,14 @@
<script setup lang="ts">
import { useRouter } from 'vue-router'
// 1. 引入 User Store
import { useUserStore } from '@/stores/user'
// 引入需要的图标
import { Box, TrendCharts, ShoppingCart, Operation } from '@element-plus/icons-vue'
const router = useRouter()
// 2. 实例化 store
const userStore = useUserStore()
// 统一跳转函数
const handleNav = (path: string) => {