mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-31 17:12:49 +08:00
优化 字典获取label方法
This commit is contained in:
parent
70842e1fe8
commit
c1a32ff066
@ -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 + '')
|
||||
|
Loading…
Reference in New Issue
Block a user