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

View File

@@ -1,7 +1,17 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
server: {
port: 3000,
open: true,
},
})