แก้ไข leaveTypeName

This commit is contained in:
AnandaTon 2023-12-13 11:50:47 +07:00
parent e0a16671dd
commit 3148c63d26
2 changed files with 2 additions and 3 deletions

View file

@ -184,7 +184,6 @@ export const useLeaveStore = defineStore("Leave", () => {
typeLeave.value = convertSubtitleInfo2(subitem)
}
typeId.value = convertId(item)
console.log(typeId.value)
}
/**
@ -193,7 +192,7 @@ export const useLeaveStore = defineStore("Leave", () => {
* @returns
*/
function convertSubtitle(val: string) {
return options.value.find(x => x.id == val)?.name
return options.value.find(x => x.code == val)?.name
}
/**