mirror of
https://litchi.icu/ngc2207/judge4c-demo.git
synced 2026-10-15 16:55:15 +00:00
feat: 添加代码片段加载页面并实现延迟加载
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export default function SnippetShowLoadingPage() {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
@@ -8,6 +8,8 @@ interface SnippetShowPageProps {
|
||||
}
|
||||
|
||||
export default async function SnippetShowPage(props: SnippetShowPageProps) {
|
||||
await new Promise((r) => setTimeout(r, 2000));
|
||||
|
||||
const params = await props.params;
|
||||
const snippet = await db.snippet.findFirst({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user