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.
|
|
|
import Cookie from 'js-cookie'
|
|
|
|
|
|
|
|
const url = location.host
|
|
|
|
const isDev = process.env.NODE_ENV === 'development' //是否本地
|
|
|
|
const isHh = url.includes('10.196.131.73') //是否是河海版本
|
|
|
|
const isPro = url.includes('occupationlab.com') //是否职站生产
|
|
|
|
const isZxy = url.includes('izhixinyun.com') //是否智信云
|
|
|
|
|
|
|
|
let host = location.origin + '/'
|
|
|
|
let bankPath = `${location.origin}/banksystem` // 银行系统
|
|
|
|
// 121.37.12.51 | 192.168.31.151
|
|
|
|
if (isDev) {
|
|
|
|
host = 'http://192.168.31.51:9000/'
|
|
|
|
// host = 'http://192.168.31.116:9000/'
|
|
|
|
host = 'http://121.37.12.51:9000/'
|
|
|
|
// host = 'https://occupationlab.com/'
|
|
|
|
bankPath = `http://${location.hostname}:8093`
|
|
|
|
} else if (isPro) {
|
|
|
|
host = 'https://occupationlab.com/'
|
|
|
|
bankPath = `https://www.huorantech.cn/banksystem`
|
|
|
|
}
|
|
|
|
const systemId = Cookie.get('admin-systemId')
|
|
|
|
export default {
|
|
|
|
/**
|
|
|
|
* @description 域名
|
|
|
|
*/
|
|
|
|
host,
|
|
|
|
/**
|
|
|
|
* @description 是否本地
|
|
|
|
*/
|
|
|
|
isDev,
|
|
|
|
/**
|
|
|
|
* @description 是否是河海版本
|
|
|
|
*/
|
|
|
|
isHh,
|
|
|
|
/**
|
|
|
|
* @description 是否是职站生产
|
|
|
|
*/
|
|
|
|
isPro,
|
|
|
|
/**
|
|
|
|
* @description 是否智信云
|
|
|
|
*/
|
|
|
|
isZxy,
|
|
|
|
/**
|
|
|
|
* @description 系统主题色
|
|
|
|
* 如果有多个systemId,则显示系统7的主题色
|
|
|
|
*/
|
|
|
|
defaultSystem: systemId.includes(',') ? 7 : systemId,
|
|
|
|
/**
|
|
|
|
* 银行系统
|
|
|
|
**/
|
|
|
|
bankPath,
|
|
|
|
/**
|
|
|
|
* @description 长时间未操作,自动退出登录时间
|
|
|
|
*/
|
|
|
|
autoLogoutTime: 3600000
|
|
|
|
}
|