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

@@ -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) {