feat: 更换了版本管理的接口

This commit is contained in:
2026-04-30 10:50:40 +08:00
parent b5141dc2d1
commit 2cbfae6833

View File

@@ -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地址
});
}
};