15 lines
424 B
JavaScript
15 lines
424 B
JavaScript
import request from "../base/request";
|
|
import { isProd } from "@/constant/base";
|
|
import { useAppStore } from "@/store";
|
|
|
|
// 获取服务地址
|
|
const getEvnUrl = async (args) => {
|
|
const res = await request.post("https://biz.nianxx.cn/hotelBiz/mainScene/getServiceUrl", args)
|
|
if (res && res.code == 0 && res.data) {
|
|
const appStore = useAppStore();
|
|
appStore.setServerConfig(res.data);
|
|
}
|
|
};
|
|
|
|
export { getEvnUrl };
|