提交 778978af 编写于 作者: D DebugIsFalse

Update [id].vue

上级 b2db3e24
......@@ -205,7 +205,7 @@ const fetchLinkedQuestion = (query) => {
const { gitPath, id } = state
const messages = []
messages.push({ role: 'user', content: query })
useFetchRequest('/v1/chat/recomend_question', {
useRequest('/v1/chat/recomend_question', {
method: 'post',
headers: {
'Content-Type': 'application/json'
......@@ -253,9 +253,10 @@ function initSearchRecords (records) {
data.value = records.map(item => {
let { answer, actions } = item
const historyItem = { article: answer, desLoading: false, searchLoading: false, ansLoading: false }
// console.log(`actions:`, typeof actions)
// todo ?action为啥成了string?
actions = typeof actions === 'string' ? JSON.parse(actions) : actions
console.log(actions)
// console.log(actions)
// 处理搜索过程
actions && actions.forEach(child => {
const childAction = child.action
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册