提交 6d7bac8c 编写于 作者: D DebugIsFalse

Merge branch 'main' of gitcode.com:git_bot/ai-fe

...@@ -133,8 +133,7 @@ const scrollToView = () => { ...@@ -133,8 +133,7 @@ const scrollToView = () => {
if (!isAutoToBottom.value) return if (!isAutoToBottom.value) return
const $target = document.querySelector('#scrollElement') const $target = document.querySelector('#scrollElement')
if (!$target) return if (!$target) return
const height = $target.clientHeight y.value = $target.clientHeight
y.value = height
} }
const handleReGenerate = () => { const handleReGenerate = () => {
const { question } = askingData.value const { question } = askingData.value
...@@ -148,8 +147,7 @@ const handleReGenerate = () => { ...@@ -148,8 +147,7 @@ const handleReGenerate = () => {
// git url // git url
function baseGitUrl() { function baseGitUrl() {
const endWidthGit = state.gitPath.endsWith('.git') const endWidthGit = state.gitPath.endsWith('.git')
const baseUrl = endWidthGit ? state.gitPath.slice(0, state.gitPath.length - 4) : state.gitPath return endWidthGit ? state.gitPath.slice(0, state.gitPath.length - 4) : state.gitPath
return baseUrl
} }
const handleCloseHistoryAsk = () => { const handleCloseHistoryAsk = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册