import { defHttp } from '/@/utils/http/axios'; enum AutoLoginApi { AutoLogin = '/sys/autoLogin', IpAutoLogin = '/sys/ipAutoLogin', } /** 自动登录 — 请求网关地址(由 VITE_AUTOLOGIN_URL 控制),form 表单格式 */ export function autoLoginApi() { const url = import.meta.env.VITE_AUTOLOGIN_URL || AutoLoginApi.AutoLogin; return defHttp.post({ url, data: 'username=&password=', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, }); }