提交 9f1d8ae4 编写于 作者: D DebugIsFalse

Merge branch 'main' of gitcode.com:git_bot/ai-fe

......@@ -35,8 +35,8 @@
</div>
</template>
<script setup>
const { $setRepo } = useReposStore()
const { $repos } = storeToRefs(useReposStore())
const { $setRepo } = useReposStore()
const { $getSearchHistory } = useSearchStore()
const emits = defineEmits([ 'search' ])
const query = ref('')
......@@ -71,8 +71,8 @@ const handleSearch = async () => {
})
}
nextTick(async () => {
if (!$repos.length) {
const { data } = await useRequest('/v1/chat/repository', {})
if (!$repos.value.length) {
const { data } = await useRequest('/v1/chat/repository')
const repoData = data.value.data.map(item => {
return {
label: item.name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册