แข่งขันดูชื่อรอบ

This commit is contained in:
Kittapath 2023-07-26 19:50:56 +07:00
parent a98f365960
commit 99f56a89f2

View file

@ -133,7 +133,7 @@ const router = useRouter();
const route = useRoute();
const { loaderPage } = dataStore;
const mixin = useCounterMixin();
const { messageError } = mixin;
const { messageError, success } = mixin;
const year = ref<string>("");
const round = ref<string>("");
const name = ref<string>("");
@ -451,10 +451,12 @@ const fetchData = async () => {
notpass.value = header.notpass;
// period information
name.value = period.name;
round.value = period.order as string;
year.value =
period.year >= 2500 ? period.year : ((period.year + 543) as string);
if (period != null) {
name.value = period.name;
round.value = period.order;
year.value =
period.year >= 2500 ? period.year : ((period.year + 543) as string);
}
const data = res.data.result.data;
if (data.length > 0) {