Explorar el Código

默认host地址删除

zhouna hace 6 años
padre
commit
79e63ede6e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;       //请求超时