2d348239856ec58f0c14e6b2a5ce809fca9eb643
重构项目目录结构,将Views重命名为views,统一命名规范 新增多个服务类(ProductService, ShopService等)实现API调用 优化路由配置,添加404页面和路由守卫 完善类型定义(Type.ts),增加详细接口类型 修复登录逻辑,正确处理API响应 优化商品详情页,对接后端API获取真实数据 重构用户中心页面,对接订单和用户信息接口 统一CSS文件位置,修复样式问题
pc_frontend
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) (and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
Type Support for .vue Imports in TS
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
Customize configuration
See Vite Configuration Reference.
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Type-Check, Compile and Minify for Production
npm run build
Description
Languages
Vue
94.2%
TypeScript
4.9%
CSS
0.8%
HTML
0.1%