Files
NianxxWEB/README.md

872 B
Raw Permalink Blame History

NianXX 官网

同一仓库包含两个前端入口:

  • /:公开官网,包含首页、关于与联系、中英文切换。
  • /platform/:智念科技产品平台与行业应用入口。

本地开发

pnpm install
pnpm dev

开发服务器启动后访问:

  • 官网:http://localhost:5173/
  • 产品平台:http://localhost:5173/platform/

构建

pnpm build
pnpm preview

Vite 会同时生成 dist/index.htmldist/platform/index.html。部署时需要保证:

  • /about 等官网路径回退到 /index.html
  • /platform/ 回退到 /platform/index.html
  • /assets/ 与协议页按静态文件直接提供。

鉴权说明

产品平台当前只保留原项目的前端演示登录状态不能作为访问控制。正式保护产品入口前需要接入后端登录、SSO 或网关鉴权。