This commit is contained in:
Jason
2022-09-20 15:44:27 +08:00
parent 51b35b664d
commit db45652f28
136 changed files with 134 additions and 134 deletions

View File

@@ -3,7 +3,7 @@ const config = {
title: '后台管理系统', //网站默认标题
version: '1.2.0', //版本号
baseUrl: `${import.meta.env.VITE_APP_BASE_URL}/`, //请求接口域名
urlPrefix: 'adminapi', //请求默认前缀
urlPrefix: 'api', //请求默认前缀
timeout: 10 * 1000 //请求超时时长
}

View File

@@ -71,7 +71,7 @@ export class Axios {
this.removeCancelToken(err.config?.url!)
}
if (err.code == AxiosError.ECONNABORTED) {
if (err.code == AxiosError.ECONNABORTED || err.code == AxiosError.ERR_NETWORK) {
setTimeout(() => {
console.log(err)
this.retryRequest(err)