From 7a1b996877d72a15119a5939d38510e6e4fb5927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 18:40:27 +0800 Subject: [PATCH] Await fetchAllFiles() in FilesPage onMounted to fix premature loading reset Co-Authored-By: Claude Opus 4.6 --- src/views/Files/FilesPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/Files/FilesPage.vue b/src/views/Files/FilesPage.vue index bbdabef..54d3743 100644 --- a/src/views/Files/FilesPage.vue +++ b/src/views/Files/FilesPage.vue @@ -930,9 +930,9 @@ const handleWindowClick = (e) => { }; // Mounted -onMounted(() => { +onMounted(async () => { isLoading.value = true; - store.fetchAllFiles(); + await store.fetchAllFiles(); window.addEventListener("click", handleWindowClick); // Add the .scrollbar class to the DataTable tbody const tbodyElement = document.querySelector(".p-datatable-tbody");