Replace async IIFE with onMounted for page initialization (S7785)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 08:47:34 +08:00
co-authored by Claude Opus 4.6
parent e9e588385b
commit bbca475bbe
5 changed files with 13 additions and 25 deletions
@@ -270,7 +270,7 @@ export default {
};
</script>
<script setup>
import { ref } from "vue";
import { ref, onMounted } from "vue";
import { useRoute } from "vue-router";
import { storeToRefs } from "pinia";
import moment from "moment";
@@ -1049,8 +1049,7 @@ function getAvgWaitingTimeLineChart(chartData, content, yUnit) {
return [primeVueSetData, primeVueSetOption];
}
// Created logic
(async () => {
onMounted(async () => {
isLoading.value = true;
try {
const routeParams = route.params;
@@ -1138,7 +1137,7 @@ function getAvgWaitingTimeLineChart(chartData, content, yUnit) {
} finally {
isLoading.value = false;
}
})();
});
</script>
<style scoped>
@reference "../../../assets/tailwind.css";