From 9efea4fc64f7f55e14226342abb50d19b950ed63 Mon Sep 17 00:00:00 2001 From: Hiveer Date: Thu, 26 Sep 2024 13:41:55 +0800 Subject: [PATCH] Fix repo clone token bug --- frontend/src/components/shared/RepoClone.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/shared/RepoClone.vue b/frontend/src/components/shared/RepoClone.vue index 3e0c6479b..cc4ac399b 100644 --- a/frontend/src/components/shared/RepoClone.vue +++ b/frontend/src/components/shared/RepoClone.vue @@ -15,7 +15,7 @@ {{ syncInprogress ? $t("repo.source.syncing") : $t("repo.source.syncButton") }} - + { if (!currentUser.value) return - if (!props.userName) return const { data } = await useFetchApi( `/user/${currentUser.value}/tokens?app=git` @@ -343,7 +342,7 @@ result = snapshot_download(repo_id, cache_dir=cache_dir, endpoint=endpoint, toke } } - watch(() => cloneRepositoryVisible.value, () => { + watch(cloneRepositoryVisible, () => { if (cloneRepositoryVisible.value && !accessToken.value) { fetchUserToken() }