From 2cbfae683370f87dd67516a237b73988fd361b34 Mon Sep 17 00:00:00 2001 From: zoujing Date: Thu, 30 Apr 2026 10:50:40 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=20=E6=9B=B4=E6=8D=A2=E4=BA=86?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=AE=A1=E7=90=86=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/request/api/GetServiceUrlApi.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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地址 + }); } };