diff --git a/src/request/api/GetServiceUrlApi.js b/src/request/api/GetServiceUrlApi.js index 6707b25..73738fc 100644 --- a/src/request/api/GetServiceUrlApi.js +++ b/src/request/api/GetServiceUrlApi.js @@ -3,11 +3,14 @@ import { proUrl } from "../base/baseUrl"; import { useAppStore } from "@/store"; export const getServiceUrl = async (versionValue) => { - const apiUrl = proUrl + "/hotelBiz/mainScene/getServiceUrl"; + const apiUrl = proUrl + "/hotelBiz/versionManager/getInfo"; const res = await request.post(apiUrl, { versionValue: versionValue }); if (res && res.code == 0 && res.data) { const appStore = useAppStore(); - appStore.setServerConfig(res.data); + appStore.setServerConfig({ + baseUrl: res.data.httpUrl, // 服务器基础地址 + wssUrl: res.data.wssUrl, // 服务器wss地址 + }); } };