fix: 🐛 字典和菜单打包警告问题修复

This commit is contained in:
Ray.Hao
2025-03-24 10:36:52 +08:00
parent 96519a69c2
commit c82ef63c62
4 changed files with 10 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ function handleConfirm(data: IUser[]) {
}
const text = computed(() => {
// 获取字典数据
const dictData = dictStore.getDictionary("gender");
const dictData = dictStore.getDictItems("gender");
const genderLabel = dictData.find((item: any) => item.value == selectedUser.value?.gender)?.label;
return selectedUser.value
? `${selectedUser.value.username} - ${genderLabel} - ${selectedUser.value.deptName}`