前端修改通用的后台配置地址
This commit is contained in:
parent
a5061fd6ee
commit
2a6084eb04
@ -194472,3 +194472,23 @@ transform: {rot: [0.994135, -0.00252459, 0.00230278, 0.00226079, 0.994134, 0.108
|
||||
[08/05 13:50:57.012168][debug][19620][Pipeline.cpp:323] Pipeline streaming... frameset output rate=30.115677fps
|
||||
[08/05 13:50:57.124749][debug][12656][AccelSensor.cpp:258] Accel Sensor Streaming... frameRate=498.405121fps
|
||||
[08/05 13:50:58.744345][debug][2060][PropertyAccessor.cpp:50] get firmware data success! propertyId: 1003, dataLen: 24
|
||||
[08/06 09:16:02.054924][debug][2648][Context.cpp:30] Context creating, work_dir=D:\Trae_space\BodyBalanceEvaluation
|
||||
[08/06 09:16:02.055091][debug][2648][Context.cpp:49] Config file version=1.1
|
||||
[08/06 09:16:02.055143][debug][2648][FrameBufferManager.cpp:23] Max global frame buffer size updated! size=2048.000MB
|
||||
[08/06 09:16:02.055167][info][2648][Context.cpp:68] Context created with config: default config!
|
||||
[08/06 09:16:02.055319][info][2648][Context.cpp:73] Work directory=D:\Trae_space\BodyBalanceEvaluation, SDK version=v1.10.11-20240724-aeaa107e5
|
||||
[08/06 09:16:02.055497][debug][2648][DeviceManager.cpp:30] DeviceManager init ...
|
||||
[08/06 09:16:02.055529][info][2648][MfPal.cpp:105] createObPal: create WinPal!
|
||||
[08/06 09:16:02.055674][debug][2648][MfPal.cpp:110] WmfPal init ...
|
||||
[08/06 09:16:02.090636][debug][2648][MfPal.cpp:117] WmfPal created!
|
||||
[08/06 09:16:02.090682][debug][2648][DeviceManager.cpp:34] Enable USB Device Enumerator ...
|
||||
[08/06 09:16:02.117028][debug][2648][EnumeratorLibusb.cpp:321] queryDevicesInfo done!
|
||||
[08/06 09:16:02.117312][debug][2648][MfPal.cpp:216] Create WinEventDeviceWatcher!
|
||||
[08/06 09:16:02.117534][debug][2648][UsbDeviceEnumerator.cpp:78] No matched usb device found!
|
||||
[08/06 09:16:02.117578][info][2648][DeviceManager.cpp:15] Current found device(s): (0)
|
||||
[08/06 09:16:02.117766][debug][2648][DeviceManager.cpp:52] DeviceManager construct done!
|
||||
[08/06 09:16:02.117796][debug][2648][Context.cpp:81] Context destroying ...
|
||||
[08/06 09:16:02.117807][debug][2648][DeviceManager.cpp:56] DeviceManager destroy ...
|
||||
[08/06 09:16:02.117816][debug][2648][DeviceManager.cpp:64] DeviceManager Destructors done
|
||||
[08/06 09:16:02.118401][debug][2648][MfPal.cpp:128] WmfPal destroyed!
|
||||
[08/06 09:16:02.118676][info][2648][Context.cpp:84] Context destroyed
|
||||
|
@ -31,7 +31,7 @@ from database import DatabaseManager
|
||||
try:
|
||||
import pykinect_azure as pykinect
|
||||
# 重新启用FemtoBolt功能,使用正确的Orbbec SDK K4A Wrapper路径
|
||||
FEMTOBOLT_AVAILABLE = True
|
||||
FEMTOBOLT_AVAILABLE = False
|
||||
print("信息: pykinect_azure库已安装,FemtoBolt深度相机功能已启用")
|
||||
print("使用Orbbec SDK K4A Wrapper以确保与FemtoBolt设备的兼容性")
|
||||
except ImportError:
|
||||
|
@ -16,7 +16,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://192.168.1.58:5000'
|
||||
}
|
||||
|
||||
// 添加时间戳防止缓存
|
||||
@ -589,4 +589,13 @@ export const downloadFile = (url, filename) => {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取后端URL的函数
|
||||
export const getBackendUrl = () => {
|
||||
if (window.electronAPI) {
|
||||
return window.electronAPI.getBackendUrl()
|
||||
} else {
|
||||
return 'http://192.168.1.58:5000'
|
||||
}
|
||||
}
|
||||
|
||||
export default api
|
@ -363,7 +363,8 @@ import { io } from 'socket.io-client'
|
||||
import html2canvas from 'html2canvas'
|
||||
import Header from '@/views/Header.vue'
|
||||
import { useAuthStore } from '../stores/index.js'
|
||||
import * as echarts from 'echarts';
|
||||
import * as echarts from 'echarts'
|
||||
import { getBackendUrl } from '../services/api.js'
|
||||
const authStore = useAuthStore()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
@ -402,7 +403,7 @@ let socket = null
|
||||
let frameCount = 0
|
||||
|
||||
// 后端服务器地址配置
|
||||
const BACKEND_URL = 'http://192.168.1.173:5000'
|
||||
const BACKEND_URL = getBackendUrl()
|
||||
|
||||
const formattedTime = ref(0)
|
||||
const dialogVisible = ref(false)
|
||||
|
Loading…
Reference in New Issue
Block a user