Browse Source

fix(gui-v2): add nextTick for scrolling log

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
8e8edec7f9
  1. 4
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

4
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -208,7 +208,9 @@ onMounted(async () => {
socket.on('progress', async (d: Record<string, any>) => { socket.on('progress', async (d: Record<string, any>) => {
progress.value.push(d) progress.value.push(d)
logRef.value.scrollTop = logRef.value?.scrollHeight nextTick(() => {
logRef.value.scrollTop = logRef.value?.scrollHeight
})
if (d.status === 'COMPLETED') { if (d.status === 'COMPLETED') {
showGoToDashboardButton.value = true showGoToDashboardButton.value = true

Loading…
Cancel
Save