修改了服务启动IP配置

This commit is contained in:
root 2025-08-20 16:14:32 +08:00
parent b0132700b9
commit 3a9e811a24
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ from devices.utils.config_manager import ConfigManager
class AppServer:
"""主应用服务器类"""
def __init__(self, host='localhost', port=5000, debug=False):
def __init__(self, host='0.0.0.0', port=5000, debug=False):
"""
初始化应用服务器

View File

@ -13,7 +13,7 @@ api.interceptors.request.use(
if (window.electronAPI) {
config.baseURL = window.electronAPI.getBackendUrl()
} else {
config.baseURL = 'http://192.168.1.173:5000'
config.baseURL = 'http://localhost:5000'
}
// 只为需要发送数据的请求设置Content-Type
@ -622,7 +622,7 @@ export const getBackendUrl = () => {
if (window.electronAPI) {
return window.electronAPI.getBackendUrl()
} else {
return 'http://192.168.1.173:5000'
return 'http://localhost:5000'
}
}