diff --git a/packages/nc-gui-v2/components/dlg/AirtableImport.vue b/packages/nc-gui-v2/components/dlg/AirtableImport.vue index c173989469..27266d5376 100644 --- a/packages/nc-gui-v2/components/dlg/AirtableImport.vue +++ b/packages/nc-gui-v2/components/dlg/AirtableImport.vue @@ -34,6 +34,8 @@ const step = ref(1) const progress = ref[]>([]) +const logRef = ref() + let socket: Socket | null const syncSource = ref({ @@ -205,6 +207,14 @@ onMounted(async () => { socket.on('progress', async (d: Record) => { progress.value.push(d) + + nextTick(() => { + if (logRef.value) { + const el = logRef.value.$el + el.scrollTop = el.scrollHeight + } + }) + if (d.status === 'COMPLETED') { showGoToDashboardButton.value = true await loadTables() @@ -303,7 +313,7 @@ onBeforeUnmount(() => {
Logs
- +
@@ -327,7 +337,9 @@ onBeforeUnmount(() => {
- Go to Dashboard + Go to Dashboard