From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/datasets/create/index.tsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/datasets/create/index.tsx b/app/components/datasets/create/index.tsx index b1e4087..9556b9f 100644 --- a/app/components/datasets/create/index.tsx +++ b/app/components/datasets/create/index.tsx @@ -6,7 +6,7 @@ import StepOne from './step-one' import StepTwo from './step-two' import StepThree from './step-three' -import { TopBar } from './top-bar' +import { Topbar } from './top-bar' import { DataSourceType } from '@/models/datasets' import type { CrawlOptions, CrawlResultItem, DataSet, FileItem, createDocumentResponse } from '@/models/datasets' import { fetchDataSource } from '@/service/common' @@ -111,7 +111,7 @@ const detail = await fetchDatasetDetail(datasetId) setDetail(detail) } - catch { + catch (e) { setHasError(true) } } @@ -123,7 +123,7 @@ return ( <div className='flex flex-col bg-components-panel-bg' style={{ height: 'calc(100vh - 56px)' }}> - <TopBar activeIndex={step - 1} datasetId={datasetId} /> + <Topbar activeIndex={step - 1} /> <div style={{ height: 'calc(100% - 52px)' }}> {step === 1 && <StepOne hasConnection={hasConnection} -- Gitblit v1.8.0