Files
2026-08-19 15:34:11 +08:00
..

Kaidi Finance Frontend

简体中文

The frontend is a Vue 3, TypeScript, Vite, Pinia, and TDesign Vue Next application. It keeps the TDesign Starter shell and component conventions while exposing only the finance system's contracted pages and domain API modules.

Requirements

  • Node.js 22.12 or later
  • The Java backend running locally

Commands

npm install
npm run dev:linux
npm test
npm run lint
npm run build

Set VITE_BACKEND_TARGET when the backend does not run at the Vite proxy's local default.

The release build runs scripts/check-production-hygiene.mjs --dist. It rejects Starter demonstration pages, Mock fixtures, dynamic all-page route loading, and obsolete branded assets from both source and build output.

Contracts

  • Routes: contracts/routes.json
  • Components: contracts/components.json
  • API operations: contracts/operations.json
  • Backend OpenAPI: ../openapi.yaml

Business pages must use TDesign Vue Next components and their domain module under src/api. Do not add generic resource adapters or demonstration routes to the production source tree.