升级openlayers;新增骨架图,提供即时视觉反馈
This commit is contained in:
5
src/app/(main)/burst-pipe-analysis/loading.tsx
Normal file
5
src/app/(main)/burst-pipe-analysis/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
|
||||
export default function Loading() {
|
||||
return <MapSkeleton />;
|
||||
}
|
||||
@@ -1,11 +1,12 @@
|
||||
import type { Metadata } from "next";
|
||||
import { cookies } from "next/headers";
|
||||
import React from "react";
|
||||
import React, { Suspense } from "react";
|
||||
import { RefineContext } from "../_refine_context";
|
||||
|
||||
import authOptions from "@app/api/auth/[...nextauth]/options";
|
||||
import { Header } from "@components/header";
|
||||
import { Title } from "@components/title";
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
import { ThemedLayout } from "@refinedev/mui";
|
||||
import { getServerSession } from "next-auth/next";
|
||||
import { redirect } from "next/navigation";
|
||||
@@ -43,7 +44,9 @@ export default async function MainLayout({
|
||||
sx: { height: "100%" },
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
<Suspense fallback={<MapSkeleton />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
</ThemedLayout>
|
||||
</RefineContext>
|
||||
);
|
||||
|
||||
5
src/app/(main)/monitoring-place-optimization/loading.tsx
Normal file
5
src/app/(main)/monitoring-place-optimization/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
|
||||
export default function Loading() {
|
||||
return <MapSkeleton />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
|
||||
export default function Loading() {
|
||||
return <MapSkeleton />;
|
||||
}
|
||||
5
src/app/(main)/network-simulation/loading.tsx
Normal file
5
src/app/(main)/network-simulation/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
|
||||
export default function Loading() {
|
||||
return <MapSkeleton />;
|
||||
}
|
||||
5
src/app/(main)/scada-data-cleaning/loading.tsx
Normal file
5
src/app/(main)/scada-data-cleaning/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import { MapSkeleton } from "@components/loading/MapSkeleton";
|
||||
|
||||
export default function Loading() {
|
||||
return <MapSkeleton />;
|
||||
}
|
||||
Reference in New Issue
Block a user