架构说明: - 前端 baseURL: /fund - 网关路由:Path=/fund/exp/** - StripPrefix=1: 去掉/fund 前缀 - PrefixPath=/api/v1: 自动添加/api/v1 前缀 - 后端 Controller: /api/v1/exp/expense-type 请求流程: 前端:GET /fund/exp/expense-type/page 网关:匹配 Path=/fund/exp/** → StripPrefix=1 → PrefixPath=/api/v1 后端:接收 /api/v1/exp/expense-type/page ✓ 与其他模块保持一致: - customer: GET /customer/page → /api/v1/customer/page - project: GET /project/page → /api/v1/project/page - expense: GET /exp/expense-type/page → /api/v1/exp/expense-type/page 设计原则: - 前端不硬编码/api/v1,由网关统一处理 - 符合网关路由与 API路径分离的架构设计
Vue 3 + TypeScript + Vite
This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.
Learn more about the recommended Project Setup and IDE Support in the Vue Docs TypeScript Guide.