提交 8d885b7c 编写于 作者: View Design's avatar View Design

Update Create.vue

上级 b0c4b27c
......@@ -70,7 +70,8 @@ const handleSearch = async () => {
$getSearchHistory()
})
}
if (!$repos.value.length) {
nextTick(async () => {
if (!$repos.value.length) {
const { data } = await useRequest('/v1/chat/repository')
const repoData = data.value.data.map(item => {
return {
......@@ -80,7 +81,8 @@ if (!$repos.value.length) {
}
})
$setRepo(repoData)
}
}
})
defineShortcuts({
meta_enter: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册