修改了服务启动IP配置
This commit is contained in:
parent
b0132700b9
commit
3a9e811a24
@ -60,7 +60,7 @@ from devices.utils.config_manager import ConfigManager
|
|||||||
class AppServer:
|
class AppServer:
|
||||||
"""主应用服务器类"""
|
"""主应用服务器类"""
|
||||||
|
|
||||||
def __init__(self, host='localhost', port=5000, debug=False):
|
def __init__(self, host='0.0.0.0', port=5000, debug=False):
|
||||||
"""
|
"""
|
||||||
初始化应用服务器
|
初始化应用服务器
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ api.interceptors.request.use(
|
|||||||
if (window.electronAPI) {
|
if (window.electronAPI) {
|
||||||
config.baseURL = window.electronAPI.getBackendUrl()
|
config.baseURL = window.electronAPI.getBackendUrl()
|
||||||
} else {
|
} else {
|
||||||
config.baseURL = 'http://192.168.1.173:5000'
|
config.baseURL = 'http://localhost:5000'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 只为需要发送数据的请求设置Content-Type
|
// 只为需要发送数据的请求设置Content-Type
|
||||||
@ -622,7 +622,7 @@ export const getBackendUrl = () => {
|
|||||||
if (window.electronAPI) {
|
if (window.electronAPI) {
|
||||||
return window.electronAPI.getBackendUrl()
|
return window.electronAPI.getBackendUrl()
|
||||||
} else {
|
} else {
|
||||||
return 'http://192.168.1.173:5000'
|
return 'http://localhost:5000'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user