feat: 初始化Vue3项目并添加基础功能

添加Pinia状态管理、Vue Router路由、Element Plus UI组件库和Axios请求库
配置Vite别名和TS路径映射
实现用户登录、路由守卫和请求拦截功能
添加全局类型定义和工具函数
This commit is contained in:
LuRuiqian
2026-04-17 09:41:36 +08:00
parent 94eca925e3
commit 47a31a726f
14 changed files with 806 additions and 2 deletions

19
src/views/HomeView.vue Normal file
View File

@@ -0,0 +1,19 @@
<script setup lang="ts">
import { ref } from 'vue'
const message = ref('欢迎使用 Vue 项目模板')
</script>
<template>
<div class="home">
<h1>{{ message }}</h1>
<el-button type="primary">Element Plus 按钮</el-button>
</div>
</template>
<style scoped>
.home {
padding: 20px;
text-align: center;
}
</style>