no message
This commit is contained in:
parent
5ffc84daf3
commit
2c42d978f1
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue