Browse Source

fix(gui-v2): scroll log automatically

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

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

@ -208,12 +208,7 @@ 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)
nextTick(() => { logRef.value.scrollTop = logRef.value?.scrollHeight
if (logRef.value) {
const el = logRef.value.$el
el.scrollTop = el.scrollHeight
}
})
if (d.status === 'COMPLETED') { if (d.status === 'COMPLETED') {
showGoToDashboardButton.value = true showGoToDashboardButton.value = true

Loading…
Cancel
Save