1、绿植租赁订单
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-06-30 14:45:06 +08:00
parent d24d03457a
commit 9eac725934
11 changed files with 148 additions and 76 deletions

View File

@@ -161,7 +161,8 @@ export function renderDict(value: number | string, dictName: string) {
}
export function renderDictValue(value: number | string, dictName: string) {
const dictInfo = getDictOptions(dictName);
return dictInfo[0].label??'';
const matchedItem = dictInfo.find((item) => item.value == value);
return matchedItem ? matchedItem.label : value;
}
export function renderIconSpan(
icon: ComponentType,