feat: 服务地址动态获取
This commit is contained in:
@@ -6,11 +6,11 @@ import { useAppStore } from "@/store";
|
||||
const getEvnUrl = (args) => {
|
||||
if (isProd) {
|
||||
const appStore = useAppStore();
|
||||
|
||||
request.post("/hotelBiz/mainScene/getServiceUrl", args).then(({ data }) => {
|
||||
console.log("🚀 ~ getEvnUrl ~ data:", data);
|
||||
appStore.setServerConfig(data);
|
||||
});
|
||||
request
|
||||
.post("https://biz.nianxx.cn/hotelBiz/mainScene/getServiceUrl", args)
|
||||
.then(({ data }) => {
|
||||
appStore.setServerConfig(data);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user