调整IP、端口地址。
This commit is contained in:
+1
-1
@@ -1444,7 +1444,7 @@
|
||||
|
||||
<script>
|
||||
// API 基础地址
|
||||
const API_BASE = 'http://localhost:59000';
|
||||
const API_BASE = 'http://localhost:58000';
|
||||
|
||||
// 全局状态
|
||||
let currentPage = 'home';
|
||||
|
||||
@@ -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
|
||||
"""
|
||||
"""
|
||||
|
||||
@@ -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';
|
||||
改成新项目实际运行的端口即可。
|
||||
|
||||
Reference in New Issue
Block a user