chore: add vinext as dev server (#32559)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-03-01 09:54:39 +08:00
committed by GitHub
parent 20fcc95db9
commit eb66d36ea8
17 changed files with 562 additions and 321 deletions

View File

@ -28,13 +28,13 @@ import { cn } from '@/utils/classnames'
export type IAppDetailLayoutProps = {
children: React.ReactNode
params: { datasetId: string }
datasetId: string
}
const DatasetDetailLayout: FC<IAppDetailLayoutProps> = (props) => {
const {
children,
params: { datasetId },
datasetId,
} = props
const { t } = useTranslation()
const pathname = usePathname()

View File

@ -6,12 +6,11 @@ const DatasetDetailLayout = async (
params: Promise<{ datasetId: string }>
},
) => {
const params = await props.params
const {
children,
params,
} = props
return <Main params={(await params)}>{children}</Main>
return <Main datasetId={(await params).datasetId}>{children}</Main>
}
export default DatasetDetailLayout