checkload
This commit is contained in:
parent
13317f94f2
commit
5ffc84daf3
6 changed files with 33 additions and 24 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue