packages/utils/common/index.js
@@ -38,6 +38,16 @@ .join(','); } // id转label xt export function getDictLabelXT(value, dictList = []) { if (value === null || value === undefined || value === '') return ''; const values = String(value).split(','); return dictList .filter(item => values.includes(String(item.dictValue))) .map(item => item.dictLabel) .join(','); } export function blobDownload(res) { const disposition = res.headers?.['content-disposition'] || res.headers?.['Content-Disposition'] const encodedName = disposition.split('filename=')[1]