diff --git a/components/i/Create.vue b/components/i/Create.vue index e77c315556eba04cfd7706c45c8fadf7fc0d9486..8feb28fbd8e7dd9230f65c81865c50eefd253c0e 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,