|
|
@@ -1,5 +1,5 @@
|
|
|
import store from 'store';
|
|
|
-import { getUrlParam } from '@/cool/utils';
|
|
|
+import { getUrlParam, getFirstHost } from '@/cool/utils';
|
|
|
|
|
|
// 路由模式
|
|
|
const routerMode = 'hash';
|
|
|
@@ -20,7 +20,7 @@ const baseUrl = (function() {
|
|
|
return `/${proxy}`;
|
|
|
case 'production':
|
|
|
// return `http://api.s.huaml.com`;
|
|
|
- return `${window.location.protocol}//api.${window.location.host}`;
|
|
|
+ return `${window.location.protocol}//api.s.${getFirstHost()}.com`;
|
|
|
default:
|
|
|
return '';
|
|
|
}
|