เครื่องราชฯ fetch รอบ
This commit is contained in:
parent
9196885cc2
commit
388893395b
2 changed files with 4 additions and 2 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue