forked from Gitlink/forgeplus-react
update
This commit is contained in:
parent
9f0b481b43
commit
5b26684c61
|
|
@ -2,6 +2,10 @@ import axios from 'axios';
|
|||
import { message , notification } from 'antd';
|
||||
|
||||
function beforeFetch(actionUrl){
|
||||
if (window.location.href.indexOf('localhost') < 0) {
|
||||
axios.defaults.withCredentials = true;
|
||||
}
|
||||
|
||||
const service = axios.create({
|
||||
baseURL: actionUrl,
|
||||
timeout: 1800000, // 请求超时时间
|
||||
|
|
|
|||
Loading…
Reference in New Issue