Commit 14de6da
committed
fix: 修复 Axios 错误处理中的类型断言问题
在 Http 类的错误处理逻辑中,修改了对 apiError 的类型断言方式,以确保正确地将 statusCode 和 response 属性添加到 Error 对象中。使用 `unknown as Record<string, unknown>` 来替代之前的 `Record<string, unknown>` 方式,以增强类型安全性和兼容性。1 parent bcc9bcd commit 14de6da
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments