【优化】删除没用的 console

This commit is contained in:
cherishsince 2024-05-17 16:13:42 +08:00
parent cfdceca9f3
commit 48b3b08f0a
3 changed files with 0 additions and 6 deletions

View File

@ -131,7 +131,6 @@ const getChatConversationList = async () => {
const res = await ChatConversationApi.getChatConversationMyList() const res = await ChatConversationApi.getChatConversationMyList()
// 2 // 2
res.sort((a, b) => { res.sort((a, b) => {
console.log('sort', a, b)
return b.updateTime - a.updateTime return b.updateTime - a.updateTime
}) })
conversationList.value = res conversationList.value = res
@ -162,7 +161,6 @@ const conversationTimeGroup = async (list: ChatConversationVO[]) => {
const threeDays = 3 * oneDay; const threeDays = 3 * oneDay;
const sevenDays = 7 * oneDay; const sevenDays = 7 * oneDay;
const thirtyDays = 30 * oneDay; const thirtyDays = 30 * oneDay;
console.log('listlistlist', list)
for (const conversation: ChatConversationVO of list) { for (const conversation: ChatConversationVO of list) {
// //
if (conversation.pinned) { if (conversation.pinned) {

View File

@ -95,7 +95,6 @@ function handleScroll() {
const scrollTop = scrollContainer.scrollTop const scrollTop = scrollContainer.scrollTop
const scrollHeight = scrollContainer.scrollHeight const scrollHeight = scrollContainer.scrollHeight
const offsetHeight = scrollContainer.offsetHeight const offsetHeight = scrollContainer.offsetHeight
console.log('scrollTop', scrollTop)
if ((scrollTop + offsetHeight) < (scrollHeight - 100)) { if ((scrollTop + offsetHeight) < (scrollHeight - 100)) {
// //
isScrolling.value = true isScrolling.value = true

View File

@ -198,7 +198,6 @@ const doSendStream = async (userMessage: ChatMessageVO) => {
userMessage.content, userMessage.content,
conversationInAbortController.value, conversationInAbortController.value,
async (message) => { async (message) => {
console.log('message', message)
const data = JSON.parse(message.data) // TODO const data = JSON.parse(message.data) // TODO
// debugger // debugger
// //
@ -225,14 +224,12 @@ const doSendStream = async (userMessage: ChatMessageVO) => {
await scrollToBottom() await scrollToBottom()
}, },
(error) => { (error) => {
console.log('error', error)
// //
conversationInProgress.value = false conversationInProgress.value = false
// stream // stream
conversationInAbortController.value.abort() conversationInAbortController.value.abort()
}, },
() => { () => {
console.log('close')
// //
conversationInProgress.value = false conversationInProgress.value = false
// stream // stream