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

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

......@@ -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 = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册