feat: add type dts and apiKeyObject

This commit is contained in:
2024-07-01 01:02:35 +08:00
parent f3c0707666
commit 9d4a4947e7
9 changed files with 509 additions and 18 deletions

5
src/utils/filter.ts Normal file
View File

@@ -0,0 +1,5 @@
// 过滤掉值为 null 的字段
export const filterNull = (updateData: Record<string, any>) => {
const filteredData = Object.fromEntries(Object.entries(updateData).filter(([_, v]) => v !== null));
return filteredData;
};