|
@@ -1,50 +1,19 @@
|
|
|
-let dc = 'http://back-apit.weipaitang.com'
|
|
|
-let tc = 'http://localhost:8080'
|
|
|
+let dc = '/back-apit/api'
|
|
|
+let tc = '/back-apit/api'
|
|
|
+let us = '/back-apit/api'
|
|
|
const apiCdn = 'http://cdn01t.weipaitang.com/img/'
|
|
|
-let auth = 'https://back-autht.weipaitang.com'
|
|
|
-let hostDev = 'http://back-admint.weipaitang.com'
|
|
|
-let us = 'http://back-apit.weipaitang.com'
|
|
|
-let sTaskJobLog = 'http://10.3.7.11:16686' // 定时任务日志跳转
|
|
|
-let thanos = 'http://thanos-admint.wpt.la'
|
|
|
+let auth = '/back-autht/api'
|
|
|
+const hostDev = `${window.location.protocol}//${window.location.host}`
|
|
|
+let sTaskJobLog = '/ms-tracet/api' // 定时任务日志跳转
|
|
|
+let thanos = '/thanos-admint/api'
|
|
|
|
|
|
-if (document.domain === 'localhost') {
|
|
|
- // dc = 'http://localhost:8000/api'
|
|
|
- // dc = 'http://backend.wpt.local:8087'
|
|
|
- dc = 'http://back-apit.weipaitang.com'
|
|
|
- // thanos = 'http://thanos-admint.wpt.la'
|
|
|
- thanos = 'http://localhost:7070'
|
|
|
-} else if (document.domain === 'back-admint.wpt.la') {
|
|
|
- dc = 'http://back-apit.weipaitang.com'
|
|
|
- us = 'http://back-apit.weipaitang.com'
|
|
|
- tc = 'http://back-apit.weipaitang.com'
|
|
|
- auth = 'https://back-autht.weipaitang.com'
|
|
|
- hostDev = 'http://back-admint.weipaitang.com'
|
|
|
- sTaskJobLog = 'http://10.3.7.11:16686' // 定时任务日志跳转
|
|
|
- thanos = 'http://thanos-admint.wpt.la'
|
|
|
-} else if (document.domain === 'back-admint.weipaitang.com') {
|
|
|
- dc = 'http://back-apit.weipaitang.com'
|
|
|
- tc = 'http://back-apit.weipaitang.com'
|
|
|
- auth = 'https://back-autht.weipaitang.com'
|
|
|
- us = 'http://back-apit.weipaitang.com'
|
|
|
- hostDev = 'http://back-admint.weipaitang.com'
|
|
|
- sTaskJobLog = 'http://10.3.7.11:16686' // 定时任务日志跳转
|
|
|
- thanos = 'http://thanos-admint.wpt.la'
|
|
|
-} else if (document.domain === 'back-admin.wpt.la') {
|
|
|
- dc = 'http://back-admin.wpt.la/api'
|
|
|
- tc = 'http://back-admin.wpt.la/api'
|
|
|
- auth = 'https://back-auth.weipaitang.com'
|
|
|
- us = 'http://back-api.weipaitang.com'
|
|
|
- hostDev = 'http://back-admin.wpt.la'
|
|
|
- sTaskJobLog = 'http://10.3.7.11:16686' // 定时任务日志跳转
|
|
|
- thanos = 'http://thanos-admin.weipaitang.com'
|
|
|
-} else if (document.domain === 'back-admin.weipaitang.com') {
|
|
|
- dc = 'http://back-api.weipaitang.com'
|
|
|
- tc = 'http://back-api.weipaitang.com'
|
|
|
- auth = 'https://back-auth.weipaitang.com'
|
|
|
- us = 'http://back-api.weipaitang.com'
|
|
|
- hostDev = 'http://back-admin.weipaitang.com'
|
|
|
- sTaskJobLog = 'http://ms-trace.weipaitang.com' // 定时任务日志跳转
|
|
|
- thanos = 'http://thanos-admin.weipaitang.com'
|
|
|
+if (document.domain === 'back-admin.weipaitang.com') {
|
|
|
+ dc = '/back-api/api'
|
|
|
+ tc = '/back-api/api'
|
|
|
+ auth = '/back-auth/api'
|
|
|
+ us = '/back-api/api'
|
|
|
+ sTaskJobLog = '/ms-trace/api' // 定时任务日志跳转
|
|
|
+ thanos = '/thanos-admin/api'
|
|
|
}
|
|
|
|
|
|
export {
|