Files
YGChatCS/src/request/api/config.js
2025-11-13 21:22:37 +08:00

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 };