tachybase_todo/packages/plugins/@hera/plugin-rental/src/utils/mapUtils.ts

11 lines
209 B
TypeScript
Raw Normal View History

2024-03-07 20:55:41 +08:00
export const mapIfHas = (getfunction, category) => {
if (isNaN(category)) {
if (category == 0) {
category = '租金';
}
return category;
} else {
return getfunction(category);
}
};