appointment_system/start-admin.bat
2025-12-11 22:50:18 +08:00

30 lines
537 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ========================================
echo 启动管理后台
echo ========================================
echo.
cd admin
echo [1/3] 检查依赖...
if not exist "node_modules" (
echo 未找到 node_modules正在安装依赖...
call npm install
)
echo.
echo [2/3] 启动开发服务器...
echo 管理后台将运行在: http://localhost:3001
echo.
echo 提示:
echo - 用户名: admin
echo - 密码: admin123
echo - 按 Ctrl+C 停止服务器
echo.
echo [3/3] 启动中...
echo.
call npm run dev
pause