diff --git a/src/modules/dict/service/info.ts b/src/modules/dict/service/info.ts index 72fc56b..ead8d85 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); + const value = Number(e.value ? e.value : e.id); return { ...e, value: isNaN(value) ? e.value : value,