Files
YGChatCS/src/request/api/config.js
2025-12-15 22:33:22 +08:00

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