refactor: 优化错误处理逻辑
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import type { AntFormValidationError } from "@/types/antd"
|
||||
|
||||
export function getFieldErrorMessage(error: AntFormValidationError<unknown>): string {
|
||||
return error.errorFields.map((errorField) => errorField.errors.join(",")).join(";")
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
export * as PhoneNumberUtils from "./phone-number-utils"
|
||||
export * as DepartmentUtils from "./department-utils"
|
||||
export * as AntUtils from "./ant-utils"
|
||||
|
||||
Reference in New Issue
Block a user