提交 94f245fd 编写于 作者: View Design's avatar View Design

Update [id].vue

上级 4b20201b
...@@ -140,8 +140,7 @@ const scrollToView = () => { ...@@ -140,8 +140,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
...@@ -155,8 +154,7 @@ const handleReGenerate = () => { ...@@ -155,8 +154,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.
先完成此消息的编辑!
想要评论请 注册