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

Create,不在 nextTick 加载

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