diff --git a/composables/useFetchRequest.js b/composables/useFetchRequest.js index 91c9e6d56ad427397bf787ae258901b5031067e9..6903e1ad91dae8f0e1fa44b9560e84d03693ef82 100644 --- a/composables/useFetchRequest.js +++ b/composables/useFetchRequest.js @@ -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) diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 281af043418a772d25ba9f5a73f375bb9d8848f7..6a5e92ace09769737c68a7fb4608de1bc595b68c 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -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 } }) } })