升级依赖版本并修复构建问题
This commit is contained in:
@@ -3,19 +3,19 @@ import Wrap from '@/components/wrap'
|
||||
import Purchase, {TabType} from '@/components/composites/purchase'
|
||||
|
||||
export type ProductPageProps = {
|
||||
searchParams?: {
|
||||
searchParams?: Promise<{
|
||||
type?: TabType
|
||||
}
|
||||
}>
|
||||
}
|
||||
|
||||
export default function ProductPage(props: ProductPageProps) {
|
||||
export default async function ProductPage(props: ProductPageProps) {
|
||||
return (
|
||||
<main className="mt-20">
|
||||
<Wrap className="flex flex-col py-8 gap-4">
|
||||
<BreadCrumb items={[
|
||||
{label: '产品中心', href: '/product'},
|
||||
]}/>
|
||||
<Purchase defaultType={props.searchParams?.type ?? 'short'}/>
|
||||
<Purchase defaultTab={(await props.searchParams)?.type ?? 'short'}/>
|
||||
</Wrap>
|
||||
</main>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user