diff --git a/pages/search/[id].vue b/pages/search/[id].vue index 86b8f2bef471350f24dddf0dd14f2b5c7e5aa296..4bee9d1fd0ef58c0d9827f62d71d60bea812cd0e 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -140,8 +140,7 @@ const scrollToView = () => { if (!isAutoToBottom.value) return const $target = document.querySelector('#scrollElement') if (!$target) return - const height = $target.clientHeight - y.value = height + y.value = $target.clientHeight } const handleReGenerate = () => { const { question } = askingData.value @@ -155,8 +154,7 @@ const handleReGenerate = () => { // git url function baseGitUrl() { const endWidthGit = state.gitPath.endsWith('.git') - const baseUrl = endWidthGit ? state.gitPath.slice(0, state.gitPath.length - 4) : state.gitPath - return baseUrl + return endWidthGit ? state.gitPath.slice(0, state.gitPath.length - 4) : state.gitPath } const handleCloseHistoryAsk = () => {