Commit ccacaa2d authored by 黄奎's avatar 黄奎

菜单调整

parent 7f2fdd0a
...@@ -63,13 +63,12 @@ export function compareArray(arrA: any[], arrB: any[]) { ...@@ -63,13 +63,12 @@ export function compareArray(arrA: any[], arrB: any[]) {
return isSame return isSame
} }
/** 获取当前域名 localhost、pic.oytour.com、sell.oytour.com*/ /** 获取当前域名 localhost、192.168.10.xx、pic.oytour.com、sell.oytour.com、typic.oytour.com*/
export function getDomainName() { export function getDomainName() {
let domainNameUrl = window.location.hostname; let domainNameUrl = window.location.hostname;
if (domainNameUrl == 'localhost') { if (domainNameUrl == 'localhost') {
return 'pic.oytour' return 'pic.oytour'
} else if (domainNameUrl.indexOf("192.168.10") > -1) { } else if (domainNameUrl.indexOf("192.168.10") > -1) {
console.log("11");
return "typic.oytour" return "typic.oytour"
} }
else if (domainNameUrl == "typic.oytour.com") { else if (domainNameUrl == "typic.oytour.com") {
......
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