|
@@ -23,7 +23,7 @@ export default defineComponent({
|
|
'online': 'https://mec.colexiu.com'
|
|
'online': 'https://mec.colexiu.com'
|
|
}
|
|
}
|
|
|
|
|
|
- const environment = location.origin.includes('//dev') ? 'dev' : location.origin.includes('//test') ? 'test' : location.origin.includes('//online') ? 'online' : 'dev'
|
|
|
|
|
|
+ const environment = location.origin.includes('//dev') ? 'dev' : location.origin.includes('//test') ? 'test' : location.origin.includes('//mec.colexiu') ? 'online' : 'dev'
|
|
const apiUrl = apiUrls[environment]
|
|
const apiUrl = apiUrls[environment]
|
|
// const prefix = /(localhost|192)/.test(location.host) ? 'http://dev.resource.colexiu.com/' : location.origin
|
|
// const prefix = /(localhost|192)/.test(location.host) ? 'http://dev.resource.colexiu.com/' : location.origin
|
|
const prefix = /(localhost|192)/.test(location.host) ? 'https://dev.kt.colexiu.com/' : apiUrl
|
|
const prefix = /(localhost|192)/.test(location.host) ? 'https://dev.kt.colexiu.com/' : apiUrl
|