From 5352269b096b356dd864ae077ad8f7cd7e890555 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Fri, 17 Mar 2023 02:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=B8=80=E4=B8=AA=E5=89=8D=E7=AB=AF=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snowy-admin-web/src/utils/tool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snowy-admin-web/src/utils/tool.js b/snowy-admin-web/src/utils/tool.js index 2fa58708..802b2b83 100644 --- a/snowy-admin-web/src/utils/tool.js +++ b/snowy-admin-web/src/utils/tool.js @@ -92,7 +92,7 @@ tool.dictTypeData = (dictValue, value) => { } const children = tree.children const dict = children.find((item) => item.dictValue === value) - return dict?.name || '无此字典' + return dict ? dict.dictLabel : '无此字典项' } // 获取某个code下字典的列表,多用于字典下拉框