no message

This commit is contained in:
STW_TTTY\stwtt 2024-09-26 13:51:13 +07:00
parent 5ffc84daf3
commit 2c42d978f1
2 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ async function getStat() {
contain: statCard.contain,
disclaim: statCard.disclaim,
};
DataStore.checkLoad(1)
DataStore.checkLoad(1);
})
.catch((e) => {
messageError($q, e);
@ -65,7 +65,6 @@ async function fetchPlacementData() {
.get(config.API.MainDetail(0))
.then(async (res) => {
DataStore.DataMainOrig = await res.data.result;
DataStore.checkLoad(1)
})
.catch((e) => {
messageError($q, e);

View file

@ -188,7 +188,8 @@ export const usePlacementDataStore = defineStore("placement", () => {
let count = 0; // ตัวแปรนับจำนวนค่าที่รับ
function checkLoad(val: number) {
count += val;
if (count >= 3) {
DataMainOrig.value.length == 0;
if (count >= 2) {
hideLoader();
count = 0;
}