feat: add type dts and apiKeyObject
This commit is contained in:
5
src/utils/filter.ts
Normal file
5
src/utils/filter.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user