提交 7c77e6ec 编写于 作者: D DebugIsFalse

fix: 接口变化

上级 2f70ed3d
......@@ -5,7 +5,7 @@ const useFetchRequest = (baseUrl) => {
headers: {}
}
const fetchRequest = (url, fetchConfig) => {
url = `${BASE_URL}${url}`
url = `${baseUrl}${url}`
fetchConfig = fetchConfig || {}
fetchConfig.method = (fetchConfig.method || 'get').toLocaleUpperCase()
fetchConfig = Object.assign(config, fetchConfig)
......
......@@ -207,7 +207,7 @@ const fetchLinkedQuestion = (query) => {
}).then((res) => {
if (res && res.data && res.data.items) {
recommendQuestions.value = res.data.items.map(item => {
return { title: item }
return { title: item.question }
})
}
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册