From e8fd104bf7748ff3ccc95a6ae2cfef9385c3b85f Mon Sep 17 00:00:00 2001 From: KQL Date: Sun, 24 Aug 2025 14:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E7=BD=B2=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=BB=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正 package.json 中的服务器启动路径 - 更新快速启动脚本的访问地址提示 - 更新文档中的访问URL为完整路径 - 确保服务器从项目根目录启动而非public目录 --- .claude/settings.local.json | 6 +++++- DEPLOYMENT.md | 6 ++++-- README.md | 4 +++- package.json | 4 ++-- quick-start.bat | 2 +- quick-start.sh | 2 +- 6 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 028910f..495b4d6 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -6,7 +6,11 @@ "mcp__serena__read_file", "Bash(open /Users/apple/Documents/cursor/数字员工/linear-workflow.html)", "Bash(git init:*)", - "Bash(git add:*)" + "Bash(git add:*)", + "Bash(git commit:*)", + "Bash(git remote add:*)", + "Bash(git push:*)", + "Bash(chmod:*)" ], "deny": [], "ask": [] diff --git a/DEPLOYMENT.md b/DEPLOYMENT.md index 5672962..01e29be 100644 --- a/DEPLOYMENT.md +++ b/DEPLOYMENT.md @@ -24,7 +24,7 @@ cd agent quick-start.bat ``` -项目将自动在 `http://127.0.0.1:5175` 启动 +项目将自动在 `http://127.0.0.1:5175` 启动,并打开 `linear-workflow.html` 页面 --- @@ -73,7 +73,9 @@ npm run serve ### 5. 访问应用 -在浏览器中访问:`http://127.0.0.1:5175` +在浏览器中访问:`http://127.0.0.1:5175/linear-workflow.html` + +或者如果使用 `npm run dev`,浏览器会自动打开 --- diff --git a/README.md b/README.md index 049848d..8c0456e 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,9 @@ npm install npm run dev ``` -项目将在 `http://127.0.0.1:5175` 启动,并自动打开浏览器展示页面。 +项目将在 `http://127.0.0.1:5175` 启动,并自动打开浏览器展示 `linear-workflow.html` 页面。 + +如果浏览器没有自动打开,请手动访问:`http://127.0.0.1:5175/linear-workflow.html` ## 部署方式 diff --git a/package.json b/package.json index ba360d3..21529c3 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "AI Agent 设计工作流 - 奶茶快闪店宝可梦主题设计", "main": "linear-workflow.html", "scripts": { - "dev": "npx http-server -p 5175 -a 127.0.0.1 -o /linear-workflow.html", - "serve": "npx http-server -p 5175 -a 127.0.0.1" + "dev": "npx http-server . -p 5175 -a 127.0.0.1 -o linear-workflow.html", + "serve": "npx http-server . -p 5175 -a 127.0.0.1" }, "keywords": [ "AI", diff --git a/quick-start.bat b/quick-start.bat index f430763..1583ad9 100644 --- a/quick-start.bat +++ b/quick-start.bat @@ -36,7 +36,7 @@ echo ====================================== echo 启动服务器... echo ====================================== echo. -echo 服务器地址: http://127.0.0.1:5175 +echo 服务器地址: http://127.0.0.1:5175/linear-workflow.html echo 按 Ctrl+C 停止服务器 echo. diff --git a/quick-start.sh b/quick-start.sh index 10758f4..01a16e9 100755 --- a/quick-start.sh +++ b/quick-start.sh @@ -31,7 +31,7 @@ echo "======================================" echo "🚀 启动服务器..." echo "======================================" echo "" -echo "服务器地址: http://127.0.0.1:5175" +echo "服务器地址: http://127.0.0.1:5175/linear-workflow.html" echo "按 Ctrl+C 停止服务器" echo ""