From 7c77e6ec9ce13834aa175ff747c0f612d9e509da Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Wed, 22 May 2024 16:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8E=A5=E5=8F=A3=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composables/useFetchRequest.js | 2 +- pages/search/[id].vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composables/useFetchRequest.js b/composables/useFetchRequest.js index 91c9e6d..6903e1a 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 281af04..6a5e92a 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 } }) } }) -- GitLab