mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
style(projects): 格式化代码
This commit is contained in:
@ -23,7 +23,7 @@ export const errorDuration = 3000 / 1000;
|
||||
* 网络请求错误状态处理
|
||||
* @param error - 错误
|
||||
*/
|
||||
export function errorHandler(error: any) {
|
||||
export function errorHandler(error: any): void {
|
||||
if (error.response) {
|
||||
const status = error.response.status as ErrorStatus;
|
||||
ElMessage.error(ERROR_STATUS[status]);
|
||||
|
@ -35,7 +35,7 @@ export default class CustomAxiosInstance {
|
||||
}
|
||||
|
||||
/** 设置请求拦截器 */
|
||||
setInterceptor(statusConfig: StatusConfig) {
|
||||
setInterceptor(statusConfig: StatusConfig): void {
|
||||
this.instance.interceptors.request.use(
|
||||
config => {
|
||||
const handleConfig = { ...config };
|
||||
|
Reference in New Issue
Block a user