From a9fa1e662c8c3694de2eb67c8806f56fb4fd1253 Mon Sep 17 00:00:00 2001 From: Zhang Minghan Date: Mon, 7 Aug 2023 13:42:58 +0800 Subject: [PATCH] fix github card request life cycle --- src/assets/script/card/github.ts | 2 -- src/components/cards/GithubCard.vue | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/assets/script/card/github.ts b/src/assets/script/card/github.ts index c8a9db7..a004956 100644 --- a/src/assets/script/card/github.ts +++ b/src/assets/script/card/github.ts @@ -33,5 +33,3 @@ export function update() { loading.value = false; }) } - -update(); diff --git a/src/components/cards/GithubCard.vue b/src/components/cards/GithubCard.vue index ac4cd45..7d07dbc 100644 --- a/src/components/cards/GithubCard.vue +++ b/src/components/cards/GithubCard.vue @@ -7,6 +7,7 @@ import Loader from "@/components/icons/loader.vue"; const element = ref(null); registerScrollableComponent(element, true); +update();