调整IP、端口地址。

This commit is contained in:
Orangeeee
2026-09-23 15:43:09 +08:00
parent af92c45e6a
commit 5871afc9aa
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1444,7 +1444,7 @@
<script>
// API 基础地址
const API_BASE = 'http://localhost:59000';
const API_BASE = 'http://localhost:58000';
// 全局状态
let currentPage = 'home';
+2 -2
View File
@@ -37,9 +37,9 @@ if __name__ == "__main__":
seed_test_data()
import uvicorn
uvicorn.run("main:app", host="0.0.0.0", port=59000)
uvicorn.run("main:app", host="0.0.0.0", port=58000)
"""
IPv4 地址 . . . . . . . . . . . . : 192.168.6.40
子网掩码 . . . . . . . . . . . . : 255.255.255.0
默认网关. . . . . . . . . . . . . : 192.168.6.1
"""
"""
+1 -1
View File
@@ -234,7 +234,7 @@ seed_data.py → 新项目的根目录
init_test_data.py → 新项目的根目录
frontend/ → 新项目的根目录(整个文件夹)
要改的唯一参数: frontend/index.html 第 306 行
要改的唯一参数: frontend/index.html
const API_BASE = 'http://localhost:59000';
改成新项目实际运行的端口即可。