feat: 优化登录流程

This commit is contained in:
2025-12-15 22:33:22 +08:00
parent 9eb1dc6747
commit 296781c506
4 changed files with 7 additions and 11 deletions

View File

@@ -3,14 +3,11 @@ import { isProd } from "@/constant/base";
import { useAppStore } from "@/store";
// 获取服务地址
const getEvnUrl = (args) => {
if (isProd) {
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();
request
.post("https://biz.nianxx.cn/hotelBiz/mainScene/getServiceUrl", args)
.then(({ data }) => {
appStore.setServerConfig(data);
});
appStore.setServerConfig(res.data);
}
};