From e41e30d3a4076392869c70c7a6b9ac5b79296ad5 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 27 May 2024 15:52:38 +0800 Subject: [PATCH] Update Create.vue --- components/i/Create.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/i/Create.vue b/components/i/Create.vue index e77c315..8feb28f 100644 --- a/components/i/Create.vue +++ b/components/i/Create.vue @@ -70,11 +70,7 @@ const handleSearch = async () => { } onMounted(async () => { if (!$repos.length) { - let repoData = await fetchRequest('/v1/chat/repository', { - headers: { - 'Content-Type': 'application/x-www-form-urlencoded' - } - }) + let repoData = await useRequest('/v1/chat/repository', {}) repoData = repoData.data.map(item => { return { label: item.name, -- GitLab