Commit 04078522 authored by 黄奎's avatar 黄奎

跳转ERP域名调整

parent 8ca738ae
......@@ -18,17 +18,17 @@ export default function () {
domainPostUrl = "http://testapi.oytour.com"
}
}
let erpRoutingUrl = "";
let erpSiteUrl = "";
var storageUser = this.getLocalStorage();
if (locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1) {
erpRoutingUrl = "http://admin.oytour.com/#/";
erpSiteUrl = "http://admin.oytour.com/#/";
if (storageUser && storageUser.ERPUrl) {
erpRoutingUrl = storageUser.ERPUrl + "/#/";
erpSiteUrl = storageUser.ERPUrl + "/#/";
}
} else {
erpRoutingUrl = "http://localhost:8080/#/";
erpSiteUrl = "http://localhost:8080/#/";
if (storageUser && storageUser.ERPUrl) {
erpRoutingUrl = storageUser.ERPUrl + "/#/";
erpSiteUrl = storageUser.ERPUrl + "/#/";
}
}
......@@ -46,7 +46,7 @@ export default function () {
javaUrl: locationName.indexOf('testb2b') == -1 ? "http://efficient.oytour.com" : locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://47.96.12.235:9001" : "http://192.168.10.215:9000",
ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://staticfile.oytour.com" : 'http://192.168.10.214:8130',
UploadUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('testb2b.oytour.com') !== -1 ? "http://uploadfile.oytour.com" : "http://192.168.10.214:8120",
erpRoutingUrl: erpRoutingUrl
erpRoutingUrl: erpSiteUrl
};
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