提交 dd9e129c 编写于 作者: D DebugIsFalse

Update [id].vue

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