|
|
@@ -2,15 +2,18 @@ import { routerMode } from '@/config/env';
|
|
|
|
|
|
export const getFirstHost = () => {
|
|
|
let host = window.location.host;
|
|
|
- host = host.split('.');
|
|
|
- host = host.length == 3 ? host[1] : host[0];
|
|
|
+ let arr = host.split('.');
|
|
|
+ let demain = 'hzghd.com';
|
|
|
if(process.env.NODE_ENV == 'development'){
|
|
|
- return 'huaml';
|
|
|
+ return demain;
|
|
|
}
|
|
|
if(process.env.NODE_ENV == 'local'){
|
|
|
- return 'huaml';
|
|
|
+ return demain;
|
|
|
}
|
|
|
- return host;
|
|
|
+ if(arr.length == 3){
|
|
|
+ return arr[1]+'.'.arr[2];
|
|
|
+ }
|
|
|
+ return demain;
|
|
|
};
|
|
|
|
|
|
export const revisePath = path => {
|