2025-06-02 20:40:05 +08:00
|
|
|
const ip: string = "119.29.194.155:8893";
|
|
|
|
|
// const ip: string = "yufangzc.com";
|
2025-05-16 16:16:41 +08:00
|
|
|
const fwqip: string = "yufangzc.com";
|
2025-04-30 01:43:23 +08:00
|
|
|
//打包服务器接口代理标识
|
2025-05-16 16:16:41 +08:00
|
|
|
const SERVERAGENT: string = "/jzd-api";
|
2025-04-30 01:43:23 +08:00
|
|
|
//本地代理url地址,配置了就启动代理,没配置就不启动代理
|
|
|
|
|
export const HOMEAGENT: string = "";
|
|
|
|
|
// 接口地址
|
|
|
|
|
export const BASE_URL: string =
|
2025-05-30 17:22:30 +08:00
|
|
|
process.env.NODE_ENV == "development" ? `http://${ip}/zhxy` : SERVERAGENT;
|
2025-04-30 01:43:23 +08:00
|
|
|
// WebSocket地址
|
|
|
|
|
export const BASE_WS_URL: string = `wss://${ip}`;
|
|
|
|
|
//图片地址
|
2025-05-30 17:22:30 +08:00
|
|
|
export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `http://${ip}` : `http://${fwqip}`;
|
2025-04-30 01:43:23 +08:00
|
|
|
//存token的key
|
|
|
|
|
export const AUTH_KEY: string = "satoken";
|
|
|
|
|
//token过期返回状态码
|
|
|
|
|
export const RESULT_CODE_NOT_LOGIN: number = 10;
|
|
|
|
|
//是否打印接口日志
|
|
|
|
|
export const ISREQUESTLOG: boolean = false;
|
|
|
|
|
//是否打开登录页面拦截
|
2025-05-16 16:16:41 +08:00
|
|
|
export const ISROUTERINTERCEPT: boolean = true;
|
2025-04-30 01:43:23 +08:00
|
|
|
//配置路由白名单
|
|
|
|
|
export const WHITELIST: WhiteList = [];
|
|
|
|
|
//主题颜色
|
|
|
|
|
export const THEMECOLOR: string = "#35468C";
|