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

11 lines
209 B
TypeScript

export const mapIfHas = (getfunction, category) => {
if (isNaN(category)) {
if (category == 0) {
category = '租金';
}
return category;
} else {
return getfunction(category);
}
};