checkload

This commit is contained in:
STW_TTTY\stwtt 2024-09-26 12:04:46 +07:00
parent 13317f94f2
commit 5ffc84daf3
6 changed files with 33 additions and 24 deletions

View file

@ -50,6 +50,7 @@ async function getStat() {
contain: statCard.contain,
disclaim: statCard.disclaim,
};
DataStore.checkLoad(1)
})
.catch((e) => {
messageError($q, e);
@ -60,18 +61,16 @@ async function getStat() {
* get รายละเอยด ของการสอบ
*/
async function fetchPlacementData() {
showLoader();
await http
.get(config.API.MainDetail(0))
.then(async (res) => {
DataStore.DataMainOrig = res.data.result;
DataStore.DataMainOrig = await res.data.result;
DataStore.checkLoad(1)
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
.finally(() => {});
}
/** get stat
@ -96,7 +95,6 @@ onMounted(async () => {
title.value = examData.value == null ? null : examData.value.examRound;
round.value = examData.value == null ? null : examData.value.examOrder;
year.value = examData.value == null ? null : examData.value.fiscalYear;
});
</script>
<template>