Initial commit

This commit is contained in:
2026-01-04 23:00:21 +08:00
commit d3178871eb
124 changed files with 19300 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
# License System Frontend
Admin + Agent web UI built with Vue 3, Vite, Element Plus.
## Quick Start
1) Copy env file:
```
cp .env.example .env
```
2) Update API base URL or port in `.env`:
```
VITE_API_BASE=http://localhost:39256
# or
VITE_API_PORT=39256
```
If both are empty, the frontend uses the current origin.
3) Install deps and run:
```
npm install
npm run dev
```
Build:
```
npm run build
```
## Notes
- Admin and agent share the same login page (role selector).
- Super admin is required for Agents and Settings pages.
- Backend must allow CORS for the frontend origin.
- Admin project permissions control project-level buttons (cards/projects).
- Editing agent allowed projects requires enabling "Override Allowed Projects".