提交 dd9e129c 编写于 作者: D DebugIsFalse

Update [id].vue

上级 876a6bce
......@@ -55,9 +55,8 @@ repoData = repoData.data.map(item => {
}
})
$setRepo(repoData)
// todo mock
const repoItem = $repos.find(item => route.query.repo === item.label)
const repoItem = $repos.find(item => route.query.repo === item.label) || {}
const state = reactive({
query: route.query.query || '',
repo: route.query.repo || '',
......@@ -206,6 +205,9 @@ const fetchLinkedQuestion = (query) => {
messages.push({ role: 'user', content: query })
fetchRequest('/v1/chat/recomend_question', {
method: 'post',
headers: {
'Content-Type': 'application/json'
},
body: {
repo_path: gitPath,
c_id: id,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册