kindergarten/package.json
zhonghua 1b566be4dc feat(layout): 布局与侧边栏体验优化,新增一键启动
【布局优化】
- 管理端/教师端/园校端/家长端:顶部菜单栏固定不随页面滚动(position: sticky)
- 右侧主区域使用 flex 布局,仅内容区 overflow-y: auto 滚动
- 外层布局 height: 100vh + overflow: hidden,避免整页滚动

【侧边栏优化】
- 顶部 Logo 与标题固定不随侧边栏滚动(sider-logo flex-shrink: 0)
- 菜单区域单独可滚动(sider-menu-wrap flex:1 min-height:0 overflow-y:auto)
- 侧栏容器 display:flex flex-direction:column,兼容 ant-layout-sider-children

【一键启动】
- 根目录新增 package.json:npm start 并发启动后端+前端并自动打开浏览器
- 新增 start.ps1:Windows 双击或命令行执行,新窗口启动前后端并打开预览
- 依赖:concurrently、wait-on、open

Made-with: Cursor
2026-03-02 12:15:49 +08:00

18 lines
747 B
JSON

{
"name": "kindergarten",
"private": true,
"description": "幼儿阅读教学服务平台 - 一键启动",
"scripts": {
"dev": "concurrently -k -n \"backend,frontend\" -c \"blue,green\" \"npm run dev:backend\" \"npm run dev:frontend\"",
"dev:backend": "cd reading-platform-backend && npm run start:dev",
"dev:frontend": "cd reading-platform-frontend && npm run dev",
"start": "concurrently -k -n \"backend,frontend,open\" -c \"blue,green,gray\" \"npm run dev:backend\" \"npm run dev:frontend\" \"npm run open:browser\"",
"open:browser": "wait-on http://localhost:5173 -t 60000 && open http://localhost:5173"
},
"devDependencies": {
"concurrently": "^8.2.2",
"wait-on": "^7.2.0",
"open": "^10.0.0"
}
}