33 lines
1.3 KiB
TypeScript
33 lines
1.3 KiB
TypeScript
const ip: string = "127.0.0.1:8897";
|
|
const fwqip: string = "127.0.0.1:8897";
|
|
//const ip: string = "lzcxsx.cn";
|
|
//const fwqip: string = "lzcxsx.cn";
|
|
//const ip: string = "zhxy.yufangzc.com";
|
|
//const fwqip: string = "zhxy.yufangzc.com";
|
|
//打包服务器接口代理标识
|
|
const SERVERAGENT: string = "/jsd-api";
|
|
//本地代理url地址,配置了就启动代理,没配置就不启动代理
|
|
export const HOMEAGENT: string = "";
|
|
// 接口地址
|
|
export const BASE_URL: string =
|
|
process.env.NODE_ENV == "development" ? `http://${ip}/zhxy` : SERVERAGENT;
|
|
// WebSocket地址
|
|
export const BASE_WS_URL: string = `wss://${ip}`;
|
|
//图片地址
|
|
// export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `https://${ip}` : `https://${fwqip}`;
|
|
export const BASE_IMAGE_URL = `https://${fwqip}`;
|
|
// kkFileView预览服务地址
|
|
export const KK_FILE_VIEW_URL: string = `https://${fwqip}/kkpro`;
|
|
//存token的key
|
|
export const AUTH_KEY: string = "satoken";
|
|
//token过期返回状态码
|
|
export const RESULT_CODE_NOT_LOGIN: number = 10;
|
|
//是否打印接口日志
|
|
export const ISREQUESTLOG: boolean = false;
|
|
//是否打开登录页面拦截
|
|
export const ISROUTERINTERCEPT: boolean = false;
|
|
//配置路由白名单
|
|
export const WHITELIST: WhiteList = [];
|
|
//主题颜色
|
|
export const THEMECOLOR: string = "#35468C";
|