fix: err tip (#3666)

* fix: err tip

* perf: training queue

* doc
This commit is contained in:
Archer
2025-01-25 14:10:56 +08:00
committed by archer
parent c8e2e0283b
commit 7407912bb8
13 changed files with 67 additions and 76 deletions

View File

@@ -63,7 +63,7 @@ export const useRequest2 = <TData, TParams extends any[]>(
...rest,
onError: (err, params) => {
rest?.onError?.(err, params);
if (errorToast !== undefined) {
if (errorToast !== '') {
const errText = t(getErrText(err, errorToast || '') as any);
if (errText) {
toast({