优化 字典获取label方法

This commit is contained in:
吕金泽 2022-09-29 00:24:23 +08:00
parent 70842e1fe8
commit c1a32ff066

View File

@ -22,6 +22,7 @@ common.getDictType = (type) => {
}
common.getDictLabel = (type, value) => {
value = (value || '') + ''
var values = []
value.split(',').forEach(v => {
const list = dictData.filter(it => it.type === type && it.value === v + '')