diff --git a/src/modules/dict/service/info.ts b/src/modules/dict/service/info.ts index ead8d85..01d00d0 100644 --- a/src/modules/dict/service/info.ts +++ b/src/modules/dict/service/info.ts @@ -51,7 +51,7 @@ export class DictInfoService extends BaseService { .getMany(); for (const item of typeData) { result[item.key] = _.filter(data, { typeId: item.id }).map(e => { - const value = Number(e.value ? e.value : e.id); + const value = e.value ? Number(e.value) : e.value; return { ...e, value: isNaN(value) ? e.value : value,