From bb94d5dcb4395daf6f887786936e7fc54991605a Mon Sep 17 00:00:00 2001 From: cool Date: Fri, 8 Dec 2023 19:00:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AD=97=E5=85=B8=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=80=BC=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dict/service/info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,