|
@ -224,11 +224,13 @@ watch( |
|
|
watch( |
|
|
watch( |
|
|
activeTab, |
|
|
activeTab, |
|
|
async () => { |
|
|
async () => { |
|
|
// console.log('activeTab变化了', activeTab.value) |
|
|
|
|
|
isScrolling.value = false; //回复滚动到底部方法 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
throttledSmoothScrollToBottom(); |
|
|
|
|
|
}, 100) |
|
|
|
|
|
|
|
|
console.log('activeTab变化了', activeTab.value) |
|
|
|
|
|
if (activeTab.value === 'AIchat') { |
|
|
|
|
|
isScrolling.value = false; //回复滚动到底部方法 |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
throttledSmoothScrollToBottom(); |
|
|
|
|
|
}, 100) |
|
|
|
|
|
} |
|
|
// setTimeout(throttledSmoothScrollToBottom, 100); |
|
|
// setTimeout(throttledSmoothScrollToBottom, 100); |
|
|
}, |
|
|
}, |
|
|
{ deep: true, immediate: true } |
|
|
{ deep: true, immediate: true } |
|
@ -436,8 +438,11 @@ onMounted(async () => { |
|
|
!isPhone && |
|
|
!isPhone && |
|
|
localStorage.setItem('localToken', decodeURIComponent(String(getQueryVariable('token')))) |
|
|
localStorage.setItem('localToken', decodeURIComponent(String(getQueryVariable('token')))) |
|
|
setHeight(document.getElementById("testId")); // 给父组件发送窗口高度 |
|
|
setHeight(document.getElementById("testId")); // 给父组件发送窗口高度 |
|
|
|
|
|
// 获取次数 |
|
|
await chatStore.getUserCount(); |
|
|
await chatStore.getUserCount(); |
|
|
|
|
|
// 滚动到底部 |
|
|
throttledSmoothScrollToBottom(); |
|
|
throttledSmoothScrollToBottom(); |
|
|
|
|
|
// 监听页面高度 |
|
|
throttledHeightListener(); |
|
|
throttledHeightListener(); |
|
|
|
|
|
|
|
|
// 添加输入框焦点处理 |
|
|
// 添加输入框焦点处理 |
|
|