55c90e8c602cdf537c57a3548a3295ca50f8dc94
Centralize interactive component styles, adopt the fresh eucalyptus palette, and keep map controls square with hard shadows. Update project guidance and the OpenCloud style skill to match the implementation.
OpenCloud 前端
Vue 3 + TypeScript + Vite 前端,通过 FastAPI 提供认证、云图、图鉴、个人主页和管理后台数据。
本地开发
- 在相邻的
opencloud-backend项目中启动 FastAPI 服务。 - 复制
.env.example为.env,配置高德地图 Key;如果后端不在默认地址,修改VITE_API_URL。 - 安装依赖并启动前端:
npm install
npm run dev
默认后端地址为 http://localhost:8000/api/v1。
开发服务器和本地 Preview 都固定使用 http://localhost:5173,与后端默认 CORS 配置保持一致。运行 Preview 前请先停止开发服务器。
检查与构建
npx vue-tsc -b
npm run build
Languages
Vue
80.3%
TypeScript
11.7%
CSS
6.7%
JavaScript
1.2%
HTML
0.1%