เครื่องราชฯ fetch รอบ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-06 10:50:29 +07:00
parent 9196885cc2
commit 388893395b
2 changed files with 4 additions and 2 deletions

View file

@ -66,7 +66,9 @@ const fecthRound = async () => {
}));
selectRound.value = data[0].id;
roundYear.value = data[0].year;
await fecthInsigniaType();
if (roundYear.value) {
await fecthInsigniaType();
}
}
})
.catch((err) => {

View file

@ -62,7 +62,7 @@ const fecthRound = async () => {
selectRound.value = data[0].id;
yearRound.value = data[0].year;
roundYear.value = data[0].year;
if (roundYear.value !== "") {
if (roundYear.value) {
await fecthInsigniaType();
}
}