diff --git a/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue b/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue index 3537e7e51a..3a4b726dfe 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/ExportSubActions.vue @@ -35,11 +35,15 @@ const selectedView = inject(ActiveViewInj) const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() +const isExportingType = ref(undefined) + const exportFile = async (exportType: ExportTypes) => { let offset = 0 let c = 1 const responseType = exportType === ExportTypes.EXCEL ? 'base64' : 'blob' + isExportingType.value = exportType + const XLSX = await import('xlsx') const FileSaver = await import('file-saver') @@ -84,13 +88,10 @@ const exportFile = async (exportType: ExportTypes) => { } offset = +headers['nc-export-offset'] - if (offset > -1) { - // Downloading more files - message.info(t('msg.info.downloadingMoreFiles')) - } else { - // Successfully exported all table data - message.success(t('msg.success.tableDataExported')) - } + + setTimeout(() => { + isExportingType.value = undefined + }, 200) } } catch (e: any) { message.error(await extractSdkResponseErrorMsg(e)) @@ -101,19 +102,26 @@ const exportFile = async (exportType: ExportTypes) => {