Add more timeout to axios

This commit is contained in:
Peng-YM 2020-08-30 21:58:31 +08:00
parent 3d2cd1569f
commit d14bd41b68
2 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,9 @@
<select />
</component>
<component name="ChangeListManager">
<list default="true" id="8b97a098-48b2-4e64-a9ef-522fe2d30b52" name="Default Changelist" comment="" />
<list default="true" id="8b97a098-48b2-4e64-a9ef-522fe2d30b52" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/../web/src/utils/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/../web/src/utils/index.js" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@ -76,6 +78,7 @@
<workItem from="1598323737081" duration="1913000" />
<workItem from="1598442849645" duration="8914000" />
<workItem from="1598778633049" duration="8638000" />
<workItem from="1598795202964" duration="223000" />
</task>
<servers />
</component>

View File

@ -4,7 +4,7 @@ import {BACKEND_BASE} from "@/config";
export const axios = Axios.create({
baseURL: `${BACKEND_BASE}/api`,
timeout: 1000
timeout: 10000
});
export function isEmptyObj(obj) {