This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-27 13:53:52 +07:00
parent 02f0eac63a
commit 70d0975463
2 changed files with 11 additions and 7 deletions

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { onMounted, ref, computed, nextTick } from "vue";
import { onMounted, ref, nextTick } from "vue";
import { useQuasar } from "quasar";
import config from "@/app.config";
import http from "@/plugins/http";
@ -88,9 +88,11 @@ function getRound() {
store.roundMainCode = roundFilter.value.shortCode;
store.isClosedRound = roundFilter.value.isClose;
await getSnap(roundFilter.value.shortCode);
await getAgency(roundFilter.value.revisionId);
await getAgencyPosition(roundFilter.value.revisionId);
await Promise.all([
getSnap(roundFilter.value.shortCode),
getAgency(roundFilter.value.revisionId),
getAgencyPosition(roundFilter.value.revisionId),
]);
} else {
isLoad.value = false;
roundFilter.value = "ไม่มีข้อมูล";

View file

@ -86,9 +86,11 @@ function getRound() {
store.roundYear = roundFilter.value.year;
store.isClosedRound = roundFilter.value.isClose;
await getSnap(roundFilter.value.shortCode);
await getAgency(roundFilter.value.revisionId);
await getAgencyPosition(roundFilter.value.revisionId);
await Promise.all([
getSnap(roundFilter.value.shortCode),
getAgency(roundFilter.value.revisionId),
getAgencyPosition(roundFilter.value.revisionId),
]);
} else {
isLoad.value = false;
roundFilter.value = "ไม่มีข้อมูล";