123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- export let host = 'http://zhihui-test.intra.xiaojukeji.com'
- // export let host = 'http://zhihui-pre.intra.xiaojukeji.com'
- export let requestIp = host + '/zuul'
- export let loginUrl = host + '/sso/login?jumpto=' + 'http://zhihui-test.intra.xiaojukeji.com' + location.pathname
- export let logoutUrl = host + '/sso/logout?jumpto=' + 'http://zhihui-test.intra.xiaojukeji.com' + location.pathname
- export let envTag = 'test'
- export let envUrl = 'http://zhihui-test.intra.xiaojukeji.com/zhihui_env/'
- export let toolsUrl = 'http://zhihui-test.intra.xiaojukeji.com/tools/'
- if (location.host.indexOf('localhost') < 0) {
- host = 'http://' + location.host
- requestIp = host + '/zuul'
- loginUrl = host + '/sso/login?jumpto=' + location.href
- logoutUrl = host + '/sso/logout?jumpto=' + location.href
- if (host.indexOf('zhihui-pre.intra.xiaojukeji.com') >= 0) {
- envTag = 'pre'
- } else if (host.indexOf('zhihui.xiaojukeji.com') >= 0) {
- envTag = 'online'
- envUrl = 'http://zhihui-env.intra.xiaojukeji.com/#/env'
- toolsUrl = 'http://zhihui.xiaojukeji.com/tools/'
- }
- }
- export function getEnv() {
- let env = 'test'
- if (location.host.indexOf('localhost') < 0) {
- host = 'http://' + location.host
- requestIp = host + '/zuul'
- loginUrl = host + '/sso/login?jumpto=' + location.href
- logoutUrl = host + '/sso/logout?jumpto=' + location.href
- if (host.indexOf('zhihui-pre.intra.xiaojukeji.com') >= 0) {
- env = 'pre'
- } else if (host.indexOf('zhihui.xiaojukeji.com') >= 0) {
- env = 'online'
- }
- }
- return env
- }
- export let ws = '10.78.128.20:10234'
- if (location.host.match(/localhost/) || location.host.match(/zhihui-test/)) {
- ws = '10.78.128.20:10232'
- } else if (location.host.match(/zhihui-pre/)) {
- ws = '10.78.128.20:10233'
- }
|