diff --git a/pages/search/[id].vue b/pages/search/[id].vue index d0dc3dabb1b2655cb99f63547710a3ef69a7f9c9..934ab48e5b05afb88b300473c24cf4f086ecc4a5 100644 --- a/pages/search/[id].vue +++ b/pages/search/[id].vue @@ -133,8 +133,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 @@ -148,8 +147,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 = () => {