feat: frontend multi models support (#804)

Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
This commit is contained in:
takatost 2023-08-12 00:57:13 +08:00 • committed by GitHub
commit d10ef17f17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
259 changed files with 9105 additions and 1392 deletions

View file

@ -14,7 +14,6 @@ export const useValidate: (value: ValidateValue) => [DebouncedFunc<(validateCall
setValidatedStatus({})
return
}
setValidating(true)
if (validateCallback.run) {
@ -26,7 +25,7 @@ export const useValidate: (value: ValidateValue) => [DebouncedFunc<(validateCall
setValidating(false)
}
}, { wait: 500 })
}, { wait: 1000 })
return [run, validating, validatedStatus]
}