feat(projects): 添加网络代理

This commit is contained in:
Soybean
2022-03-12 19:32:15 +08:00
parent 8191490f39
commit 094dca961f
24 changed files with 75 additions and 50 deletions

View File

@@ -9,7 +9,7 @@ import {
handleBackendError,
handleServiceResult,
} from '@/utils';
import { refreshToken } from './helpers';
import { handleRefreshToken } from './helpers';
/**
* 封装axios请求类
@@ -71,7 +71,7 @@ export default class CustomAxiosInstance {
// token失效, 刷新token
if (REFRESH_TOKEN_CODE.includes(backend[codeKey])) {
const config = await refreshToken(response.config);
const config = await handleRefreshToken(response.config);
if (config) {
return this.instance.request(config);
}