Skip to content

Commit

Permalink
fix: ajax timeout to 10s
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidZORO committed Jun 11, 2020
1 parent 7810986 commit b6f56ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/leaa-dashboard/src/utils/ajax.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';
import { getAuthToken, getGuestToken } from './auth.util';

export const ajax = axios;
ajax.defaults.timeout = 100000;
ajax.defaults.timeout = 10000;

ajax.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
ajax.defaults.headers.common.Authorization = getAuthToken() ? `Bearer ${getAuthToken()}` : '';
Expand Down

0 comments on commit b6f56ed

Please sign in to comment.