(field: string)
| 296 | } |
| 297 | |
| 298 | getFieldError(field: string) { |
| 299 | if (this.response?.code === 4 && this.response?.extra_data) { |
| 300 | return this.response.extra_data.find((v) => v.field === field)?.msg |
| 301 | } |
| 302 | |
| 303 | return undefined; |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | export interface ApiErrorResponse { |
no outgoing calls
no test coverage detected