fix: 验收包写入公司内网地址,避免 Windows 空 VITE 与 Android 假域名

Windows 补 .env.production 与 endpoints 兜底;Android 默认 host/端口改为内网,启动后重写 HttpUtil/ApiService,Urls 改为 getter。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-20 16:21:40 +08:00
co-authored by Cursor multica-agent
parent 18d890ae7f
commit bbc4dce0b6
10 changed files with 76 additions and 35 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { t } from "i18next";
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { ACCOUNT_URL } from "@/config/endpoints";
import { setIMProfile } from "@/utils/storage";
interface LoginResult {
@@ -29,7 +30,7 @@ const LoginForm = ({ onBanner }: LoginFormProps) => {
setLoading(true);
try {
const { data: res } = await axios.post<LoginResult>(
`${import.meta.env.VITE_ACCOUNT_URL}/api/login`,
`${ACCOUNT_URL}/api/login`,
{
staffNo: values.staffNo.trim(),
password: values.password,