From 412bdd4333160008f27a73f52d908507eb0a44b9 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Mon, 27 May 2024 16:58:25 +0800 Subject: [PATCH] Update [id].vue --- pages/search/[id].vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 14993b7..15ecdcc 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -26,6 +26,7 @@

{{ askingData.question }}

{ isAutoToBottom.value = true }) } -const handleFormatSource = (source) => { +function handleFormatSource (source) { const gitUrl = baseGitUrl() return source.split('\n').map((item) => { const isLink = item.indexOf('http') === 0 @@ -276,7 +275,9 @@ const generateFetchData = (query) => { // 重新生成相关问题 fetchLinkedQuestion(query) } - +useHead({ + title: `${state.query} - GitBot` +}) onMounted( () => { if (data.value.length === 0 && state.query) { generateFetchData(state.query) -- GitLab