小程序初始提交
This commit is contained in:
21
cool-unix/config/prod.ts
Normal file
21
cool-unix/config/prod.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { get } from "@/cool";
|
||||
import { proxy } from "./proxy";
|
||||
|
||||
export const prod = () => {
|
||||
const host = get(proxy, `prod.target`) as string;
|
||||
|
||||
let baseUrl: string;
|
||||
|
||||
// #ifdef H5
|
||||
baseUrl = host + "/api";
|
||||
// #endif
|
||||
|
||||
// #ifndef H5
|
||||
baseUrl = host + "/api";
|
||||
// #endif
|
||||
|
||||
return {
|
||||
host,
|
||||
baseUrl
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user