Files
WAI_Project_UNIX/config/dev.ts

22 lines
311 B
TypeScript
Raw Normal View History

2025-07-21 16:47:04 +08:00
import { get } from "@/cool";
import { proxy, value } from "./proxy";
export const dev = () => {
const host = get(proxy, `${value}.target`) as string;
let baseUrl: string;
// #ifdef H5
baseUrl = `/${value}`;
// #endif
// #ifndef H5
baseUrl = host + "";
// #endif
return {
host,
baseUrl
};
};