fix bug insigniaReclaim

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-05-14 15:00:43 +07:00
parent 7812d6d3e8
commit 948fed7af4

View file

@ -220,7 +220,6 @@ const isEdit = ref<boolean>(false); // สถานะการแก้ไข
const insigniaReclaimId = ref<string>(""); // ID
const insigniaReclaimData = ref<DataReclaim>(); //
const yearRound = ref<number>(); //
const insigniaType = ref<string>("all"); //
const employeeType = ref<string>("all"); //
@ -234,8 +233,8 @@ async function fetchInsigniaRound() {
let data = res.data.result;
roundData.value.push(...data);
roundOps.value = roundData.value;
yearRound.value = data[0].year;
if (data.length > 0) {
yearRound.value = data[0].year;
isInsigniaRound.value = true;
}
})