From dd57e0e9a989e7ee8b3e3473a7ee6a1dff06a4ae Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 27 Jan 2026 17:19:04 +0800
Subject: [PATCH] feat:调整加载
---
packages/utils/common/index.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/packages/utils/common/index.js b/packages/utils/common/index.js
index 2b1ff27..43fcec6 100644
--- a/packages/utils/common/index.js
+++ b/packages/utils/common/index.js
@@ -22,9 +22,13 @@
return rules
}
-
export function getDictLabel(value, dictList = []) {
- return dictList.filter(item => String(value).includes(String(item.dictKey))).map(item => item.dictValue).join(',')
+ if (value === null || value === undefined || value === '') return '';
+ const values = String(value).split(',');
+ return dictList
+ .filter(item => values.includes(String(item.dictKey)))
+ .map(item => item.dictValue)
+ .join(',');
}
export function blobDownload(res) {
--
Gitblit v1.9.3