|
|
@ -2,7 +2,7 @@ import Cookie from 'js-cookie' |
|
|
|
|
|
|
|
|
|
|
|
const url = location.host |
|
|
|
const url = location.host |
|
|
|
const isDev = process.env.NODE_ENV === 'development' //是否本地
|
|
|
|
const isDev = process.env.NODE_ENV === 'development' //是否本地
|
|
|
|
const isTest = url.includes('121.37.12.51') //测试服
|
|
|
|
const isTest = url.includes('118.31.167.228') //测试服
|
|
|
|
const isHh = url.includes('10.196.131.73') //是否是河海版本
|
|
|
|
const isHh = url.includes('10.196.131.73') //是否是河海版本
|
|
|
|
const isPro = url.includes('occupationlab.com') //是否职站生产
|
|
|
|
const isPro = url.includes('occupationlab.com') //是否职站生产
|
|
|
|
const isZxy = url.includes('izhixinyun.com') //是否智信云
|
|
|
|
const isZxy = url.includes('izhixinyun.com') //是否智信云
|
|
|
@ -11,16 +11,16 @@ let vscodeUrl = 'http://172.16.40.56:8088/' |
|
|
|
let host = location.origin + '/' |
|
|
|
let host = location.origin + '/' |
|
|
|
// let host = `https://izhixinyun.com/`
|
|
|
|
// let host = `https://izhixinyun.com/`
|
|
|
|
|
|
|
|
|
|
|
|
let bankPath = `${location.origin}/banksystem` // 银行系统
|
|
|
|
let bankPath = `${location.origin}/systembank` // 银行系统
|
|
|
|
// 121.37.12.51 | 192.168.31.151
|
|
|
|
// 118.31.167.228 | 192.168.31.151
|
|
|
|
if (isDev) { |
|
|
|
if (isDev) { |
|
|
|
// host = 'http://192.168.31.51:9000/'
|
|
|
|
host = 'http://192.168.31.217:9000/' |
|
|
|
host = 'http://121.37.12.51/' |
|
|
|
host = 'http://118.31.167.228/' |
|
|
|
// host = 'https://izhixinyun.com/'
|
|
|
|
// host = 'https://izhixinyun.com/'
|
|
|
|
bankPath = `http://${location.hostname}:8093` |
|
|
|
bankPath = `http://${location.hostname}:8093` |
|
|
|
} else if (isPro) { |
|
|
|
} else if (isPro) { |
|
|
|
host = 'https://occupationlab.com/' |
|
|
|
host = 'https://occupationlab.com/' |
|
|
|
bankPath = `https://www.huorantech.cn/banksystem` |
|
|
|
bankPath = `https://www.huorantech.cn/systembank` |
|
|
|
vscodeUrl = 'https://vscode.occupationlab.com' |
|
|
|
vscodeUrl = 'https://vscode.occupationlab.com' |
|
|
|
} else if (isZxy) { |
|
|
|
} else if (isZxy) { |
|
|
|
vscodeUrl = 'https://vscode.izhixinyun.com' |
|
|
|
vscodeUrl = 'https://vscode.izhixinyun.com' |
|
|
|