优化访问路径,使用index.html作为默认页面

- 将 linear-workflow.html 重命名为 index.html
- 更新所有配置文件和文档中的引用
- 现在可以直接访问 http://127.0.0.1:5175/
- 添加端口占用检查和自动处理功能
- 简化用户访问体验
This commit is contained in:
KQL
2025-08-24 14:20:37 +08:00
parent e8fd104bf7
commit 6af4efbabc
7 changed files with 54 additions and 23 deletions

View File

@@ -27,6 +27,20 @@ if %errorlevel% == 0 (
exit /b 1
)
REM 检查端口是否被占用
set PORT=5175
netstat -ano | findstr :%PORT% >nul 2>nul
if %errorlevel% == 0 (
echo.
echo 警告: 端口 %PORT% 已被占用
echo 请手动关闭占用该端口的程序,或修改 package.json 中的端口配置
echo.
echo 提示:可以使用以下命令查看占用端口的进程:
echo netstat -ano ^| findstr :%PORT%
echo.
pause
)
echo.
echo 正在安装依赖...
call npm install
@@ -36,7 +50,7 @@ echo ======================================
echo 启动服务器...
echo ======================================
echo.
echo 服务器地址: http://127.0.0.1:5175/linear-workflow.html
echo 服务器地址: http://127.0.0.1:5175/
echo 按 Ctrl+C 停止服务器
echo.