修改语法问题
This commit is contained in:
parent
ff966f5a49
commit
6737280d80
@ -153,7 +153,9 @@ export async function getDict(enCode) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function getLabel(options, value) {
|
export function getLabel(options, value) {
|
||||||
const item = options?.find(i => i.id === value);
|
if (!options || options.length === 0) return value || ''
|
||||||
return item ? item.fullName : (value || '');
|
const item = options.find(i => i.id === value)
|
||||||
|
return item ? item.fullName : (value || '')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user