diff --git a/src/views/dashboard/List.vue b/src/views/dashboard/List.vue index 7c125789..822f9430 100644 --- a/src/views/dashboard/List.vue +++ b/src/views/dashboard/List.vue @@ -384,8 +384,10 @@ function searchDashboards(pageIndex?: any) { ); } -function reloadTemplates() { - dashboardStore.resetTemplates(); +async function reloadTemplates() { + loading.value = true; + await dashboardStore.resetTemplates(); + loading.value = false; } function changePage(pageIndex: number) { searchDashboards(pageIndex);