fix: package.json添加dependencies, 修复新机器npm install空跑问题

- package.json: 声明 vue/element-plus/marked/vite 等依赖
- setup.sh/start.sh: 用 npm run build 替代 npx vite build
- start.sh: 构建前自动 npm install --include=dev
- 重新生成 package-lock.json
This commit is contained in:
cnbugs
2026-07-25 10:46:44 +08:00
parent 98b19f542e
commit f3c281dda4
4 changed files with 866 additions and 659 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ echo "✅ Python 依赖安装完成"
# 4. 构建前端
echo "📦 构建前端..."
cd frontend && npx vite build && cd ..
cd frontend && npm run build && cd ..
echo "✅ 前端构建完成"
# 5. 创建 .env (如果不存在)