|
@@ -2,10 +2,15 @@ export let host = 'http://zhihui-test.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'
|
|
|
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'
|
|
|
+ }
|
|
|
}
|