Commit df4b4288 authored by zhengke's avatar zhengke

环境变量调整

parent df476491
VUE_APP_API_URL = 'http://192.168.5.46/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'http://192.168.5.46:8120'
VUE_APP_VIITTOFILE_URL = 'http://192.168.5.46:8130'
VUE_APP_NOTIFICATION_URL = 'http://localhost:8081'
VUE_APP_DOWNLOAD_URL = 'http://192.168.5.46'
VUE_APP_SHARE_URL = 'http://127.0.0.1:8080'
VUE_APP_PDF_URL = 'http://127.0.0.1:5164'
# VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
......
VUE_APP_API_URL = 'https://reborn.oytour.com/api/common/post'
VUE_APP_UPLOADURLAPI_URL = 'https://upload.oytour.com'
VUE_APP_VIITTOFILE_URL = 'http://imgfile.oytour.com'
VUE_APP_NOTIFICATION_URL = 'http://yx.oytour.com'
VUE_APP_DOWNLOAD_URL = 'https://reborn.oytour.com'
VUE_APP_SHARE_URL = 'http://vitto.com'
VUE_APP_PDF_URL = 'https://fileservice.oytour.com'
\ No newline at end of file
export const domainManager = () => {
const locationName = window.location.hostname
const obj = {
domainUrl: locationName.indexOf('oytour') !== -1 ? "https://reborn.oytour.com/api/common/post" : "http://192.168.5.46/api/common/post",
domainUrl: process.env.VUE_APP_API_URL,
//上传站点
UploadUrl: locationName.indexOf('oytour') !== -1 ? "https://upload.oytour.com" : "http://192.168.5.46:8120",
UploadUrl: process.env.VUE_APP_UPLOADURLAPI_URL,
//文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.5.46:8130',
ViittoFileUrl: process.env.VUE_APP_VIITTOFILE_URL,
// 通知erp
notificationUrl: locationName.indexOf('oytour') !== -1 ? "http://yx.oytour.com" : "http://localhost:8081",
notificationUrl: process.env.VUE_APP_NOTIFICATION_URL,
// 文件下载地址
DownloadUrl: locationName.indexOf('oytour') !== -1 ? "https://reborn.oytour.com" : "http://192.168.5.46",
DownloadUrl: process.env.VUE_APP_DOWNLOAD_URL,
}
return obj
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment