diff --git a/src/views/revenue/pending/index.vue b/src/views/revenue/pending/index.vue index fe2aa05..50452a8 100644 --- a/src/views/revenue/pending/index.vue +++ b/src/views/revenue/pending/index.vue @@ -5,15 +5,13 @@ import { client, safeClient } from "@/api"; const { t } = useI18n(); const { vibrate } = useHaptics(); -const loading = ref(true); - -const { data } = safeClient(client.api.earnings.pending.get()); +const { data, execute } = safeClient(client.api.earnings.pending.get()); async function handleRefresh(event: RefresherCustomEvent) { vibrate(); - useTimeoutFn(() => { + await execute().finally(() => { event.target.complete(); - }, 800); + }); } function getStatusColor(status?: string) {