Write-Host "启动代码漏洞检测系统..." -ForegroundColor Green Write-Host "" Write-Host "1. 启动后端服务..." -ForegroundColor Yellow Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd backend; pip install -r requirements.txt; python main.py" Write-Host "等待后端服务启动..." Start-Sleep -Seconds 5 Write-Host "2. 启动前端服务..." -ForegroundColor Yellow Start-Process powershell -ArgumentList "-NoExit", "-Command", "cd frontend; npm install; npm start" Write-Host "" Write-Host "系统启动完成!" -ForegroundColor Green Write-Host "后端服务: http://localhost:8000" -ForegroundColor Cyan Write-Host "前端服务: http://localhost:3000" -ForegroundColor Cyan Write-Host "" Write-Host "按任意键退出..." $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")