feat: 更换了版本管理的接口
This commit is contained in:
@@ -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地址
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user