แก้ไข leaveTypeName
This commit is contained in:
parent
e0a16671dd
commit
3148c63d26
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue