update loading state when refresh the data

This commit is contained in:
MaysWind
2026-04-25 20:28:00 +08:00
parent bb2068f4db
commit 9d25914411
@@ -153,6 +153,8 @@ function open(options: { type: CategoryType; updateIds: string[] }): Promise<num
}
function reload(): void {
loading.value = true;
transactionCategoriesStore.loadAllCategories({ force: true }).then(() => {
loading.value = false;
}).catch(error => {