提交 edae4927 编写于 作者: D DebugIsFalse

Update [id].vue

上级 86af343a
......@@ -177,10 +177,11 @@ const isAutoToBottom = ref(true)
let markedWindowScrollTop = 0
const handleScroll = () => {
// 在asking操作的时候生效
if (!asking.value) return
if (!asking.value || !isAutoToBottom.value) return
const offsetValue = 5;
const top = window.scrollY;
if (top + offsetValue < markedWindowScrollTop) {
// console.log(`top + offsetValue:`, top, markedWindowScrollTop, top < markedWindowScrollTop)
if (top < markedWindowScrollTop) {
isAutoToBottom.value = false
} else {
markedWindowScrollTop = top
......@@ -191,7 +192,6 @@ const scrollToView = () => {
const $target = document.querySelector('#scrollElement')
if (!$target) return;
const height = $target.clientHeight
console.log(`height:`, height)
y.value = height
}
const isEditTitle = ref(false)
......@@ -353,7 +353,7 @@ const fetchLinkedQuestion = (query) => {
repo_path: gitPath,
c_id: id,
messages,
rephrase_question: true
// rephrase_question: true
}
}).then((res) => {
if (res && res.data && res.data.items) {
......@@ -375,7 +375,7 @@ const generateFetchData = (query) => {
c_id: id,
stream: true,
messages,
rephrase_question: true
// rephrase_question: true
},
onmessage: handleMessage,
onerror: handleError,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册