diff --git a/pages/search/[id].vue b/pages/search/[id].vue
index 14993b726c280632ccb94dc0a8cd349d41d37c9c..15ecdccbdb2966fae41b6a52c691adea55d693fa 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)