chore: painting cache

This commit is contained in:
jialin
2024-12-27 14:56:06 +08:00
parent 542f048a67
commit bca56bfaad
17 changed files with 1411 additions and 1047 deletions
+7
View File
@@ -5,6 +5,13 @@ export const isNotEmptyValue = (value: any) => {
return !!value || value === 0 || value === false;
};
export const isNotEmptyValueAllowNull = (value: any) => {
if (Array.isArray(value)) {
return value.length > 0;
}
return !!value || value === 0 || value === false || value === null;
};
export const handleBatchRequest = async (
list: any[],
fn: (args: any) => void