Parcourir la source

默认host地址删除

zhouna il y a 6 ans
Parent
commit
79e63ede6e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/utils/ajax.js

+ 1 - 1
src/utils/ajax.js

@@ -7,7 +7,7 @@ const qs=require('querystring');
 const isLocal = window.location.hostname.indexOf('localhost')!=-1;
 const qhost = isLocal?host:'';
 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
-axios.defaults.baseURL = host;       //默认地址
+//axios.defaults.baseURL = host;       //默认地址
 // axios.defaults.timeout = 60000;       //请求超时