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) {