chore: model list ux
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
// 示例方法,没有实际意义
|
||||
export function trim(str: string) {
|
||||
return str.trim();
|
||||
}
|
||||
@@ -4,3 +4,10 @@ export const isNotEmptyValue = (value: any) => {
|
||||
}
|
||||
return value !== null && value !== undefined && value !== '';
|
||||
};
|
||||
|
||||
export const handleBatchRequest = async (
|
||||
list: any[],
|
||||
fn: (args: any) => void
|
||||
) => {
|
||||
return Promise.all(list.map((item) => fn(item)));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user