深圳或然科技官网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.1 KiB

2 years ago
/**
* 业务配置
* */
const url = location.host;
2 years ago
const isDev = process.env.NODE_ENV === 'development' // 开发环境
const isGta = url.includes('139.159.254.212'); // 国泰安
2 years ago
let host = `${location.origin}/`
if (isDev) {
9 months ago
host = 'http://192.168.31.217:10000/'
host = 'https://huorantech.com'
2 years ago
}
const Setting = {
/**
* 基础配置
* */
8 months ago
titleSuffix: location.href.includes('eduvessel') ? '慧教云舟' : '职站商城', // 网页标题的后缀
2 years ago
routerMode: "hash", // 路由模式,可选值为 history 或 hash
apiBaseURL: host, // 接口请求地址
8 months ago
huoranApi: `https://occupationlab.com`,
2 years ago
autoLogoutTime: 3600000, // 长时间未操作,自动退出登录时间
modalDuration: 3, // 接口请求返回错误时,弹窗的持续时间,单位:秒
errorModalType: "Message", // 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
isDev,
9 months ago
isGta,
2 years ago
/**
* 路由白名单
* */
2 years ago
whiteList: ['/column/result', '/aboutUs', '/supplier'],
2 years ago
/**
* 英文站点id数组
* */
enIds: [1, 4, 6],
/**
* localStorage里保存的vuex的key
*/
storeKey: "huoran_client_store"
};
export default Setting;