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