添加Pinia状态管理、Vue Router路由、Element Plus UI组件库和Axios请求库 配置Vite别名和TS路径映射 实现用户登录、路由守卫和请求拦截功能 添加全局类型定义和工具函数
27 lines
546 B
JSON
27 lines
546 B
JSON
{
|
|
"name": "vue-base",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc -b && vite build",
|
|
"preview": "vite preview"
|
|
},
|
|
"dependencies": {
|
|
"axios": "^1.8.4",
|
|
"element-plus": "^2.9.7",
|
|
"pinia": "^3.0.1",
|
|
"vue": "^3.5.32",
|
|
"vue-router": "^4.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^24.12.2",
|
|
"@vitejs/plugin-vue": "^6.0.5",
|
|
"@vue/tsconfig": "^0.9.1",
|
|
"typescript": "~6.0.2",
|
|
"vite": "^8.0.4",
|
|
"vue-tsc": "^3.2.6"
|
|
}
|
|
}
|