# 软件项目开发2前端 **Repository Path**: lengineerc/software-development-fe ## Basic Information - **Project Name**: 软件项目开发2前端 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-10 - **Last Updated**: 2025-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vue 3 迁移项目 这是从 Vue 2 迁移到 Vue 3 的超市库存管理系统项目。 ## 主要变更 1. **Vue 3**: 使用 Vue 3.5.24 2. **Pinia**: 替代 Vuex 作为状态管理 3. **Vue Router 4**: 升级到 Vue Router 4 4. **Element Plus**: 使用 Element Plus(Vue 3 版本) 5. **Vite**: 使用 Vite 作为构建工具 6. **API 调用**: 所有 `$message` 和 `$confirm` 已替换为 `ElMessage` 和 `ElMessageBox` ## 安装依赖 ```bash cd vue3 npm install ``` ## 运行项目 ```bash npm run dev ``` 项目将在 http://localhost:8081 运行 ## 构建项目 ```bash npm run build ``` ## 接口配置 接口地址保持不变,通过 `/api` 代理到 `http://localhost:8090/` 代理配置在 `vite.config.js` 中。 ## 注意事项 - 所有接口地址保持不变 - 功能完全一致 - 使用 Pinia 替代了 Vuex(当前 store 为空,可根据需要添加状态管理)