mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-04-02 16:53:25 +08:00
【初始化】前端工程项目
This commit is contained in:
7
frontend/packages/hooks/src/axios/model/error-middle.ts
Normal file
7
frontend/packages/hooks/src/axios/model/error-middle.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { AxiosError } from 'axios'
|
||||
|
||||
export const handleResponseError = (error: AxiosError): never => {
|
||||
// 自定义错误处理逻辑通知等
|
||||
console.error('Handled Error:', error)
|
||||
throw error
|
||||
}
|
||||
Reference in New Issue
Block a user