From 957241e418ff5a0900dde9d1ba67c2251e3a9159 Mon Sep 17 00:00:00 2001 From: DebugIsFalse <511418503@qq.com> Date: Thu, 30 May 2024 13:53:06 +0800 Subject: [PATCH] Update [id].vue --- pages/search/[id].vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 705b162..ee13415 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -77,7 +77,7 @@ const markedEnd = '[DONE]' function initSearchItemInfo (info, records) { const { title, repo_name, repo_path, repo_branch, is_public } = info - Object.assign(state, { query: $firstRecordTitle.value, title, repo: repo_name, gitPath: repo_path, branch: repo_branch, isPublic: is_public }) + Object.assign(state, { query: $firstRecordTitle.value || title, title, repo: repo_name, gitPath: repo_path, branch: repo_branch, isPublic: is_public }) // 单独处理query,兼容临时title的历史记录 if (records && records.length > 0) { state.query = records[0].question -- GitLab