|
|
há 10 horas atrás | |
|---|---|---|
| src | há 10 horas atrás | |
| .gitignore | há 10 horas atrás | |
| README.md | há 10 horas atrás | |
| index.html | há 10 horas atrás | |
| package-lock.json | há 10 horas atrás | |
| package.json | há 10 horas atrás | |
| tsconfig.app.json | há 10 horas atrás | |
| tsconfig.json | há 10 horas atrás | |
| vite.config.ts | há 10 horas atrás |
通用型流程审批设计与管理系统 — 前端应用
cd qqflowengine-frontend
npm install
npm run dev
开发服务器默认启动在 http://localhost:3000,Vite 会自动代理 /api 请求到后端 http://localhost:8080。
# 生产构建
npm run build
# 预览生产构建
npm run preview
构建产物输出到 dist/ 目录。
开发环境的 API 代理配置在 vite.config.ts:
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
如果后端运行在其他地址/端口,请修改 vite.config.ts 中的 target。
src/
├── api/ # API 接口封装
├── components/ # 公共组件(Layout、Navbar、Sidebar)
├── router/ # 路由配置
├── stores/ # Pinia 状态管理
├── types/ # TypeScript 类型定义
├── utils/ # 工具函数
├── views/ # 页面视图
│ ├── dashboard/
│ ├── login/
│ ├── flow/ # 流程模块(定义、设计器、审批、执行)
│ └── system/ # 系统模块(用户、角色、部门、菜单)
├── App.vue
└── main.ts
默认管理员账号:admin / admin123
支持"记住密码"功能,勾选后账号密码会保存到浏览器 localStorage。
http://localhost:8080),否则 API 请求会失败