优化访问路径,使用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

@@ -33,9 +33,7 @@ npm install
npm run dev
```
项目将在 `http://127.0.0.1:5175` 启动,并自动打开浏览器展示 `linear-workflow.html` 页面
如果浏览器没有自动打开,请手动访问:`http://127.0.0.1:5175/linear-workflow.html`
项目将在 `http://127.0.0.1:5175/` 启动,并自动打开浏览器展示页面
## 部署方式
@@ -67,24 +65,24 @@ python3 -m http.server 5175 --bind 127.0.0.1
python -m SimpleHTTPServer 5175
```
然后在浏览器中访问:`http://127.0.0.1:5175/linear-workflow.html`
然后在浏览器中访问:`http://127.0.0.1:5175/`
### 方式三:直接打开 HTML 文件
由于项目使用了本地资源文件,建议使用本地服务器运行。但如果只需要查看基本功能,也可以:
1. 直接在浏览器中打开 `linear-workflow.html` 文件
1. 直接在浏览器中打开 `index.html` 文件
2. 注意:部分图片资源可能无法正常加载
## 项目结构
```
agent/
├── linear-workflow.html # 主页面文件
├── package.json # 项目配置文件
├── README.md # 说明文档
├── .gitignore # Git忽略文件
└── public/ # 公共资源目录
├── index.html # 主页面文件
├── package.json # 项目配置文件
├── README.md # 说明文档
├── .gitignore # Git忽略文件
└── public/ # 公共资源目录
├── images/ # 图片资源
│ ├── 1.杯子设计/
│ ├── 2.空间设计/