Fix: version 1.2.10

This commit is contained in:
2024-12-02 17:32:21 +08:00
parent c5beb85e58
commit 08eed15b79
2 changed files with 10 additions and 13 deletions

View File

@@ -1,14 +1,14 @@
"use client";
import { SplashScreen } from "@/app_modules/auth"; import { SplashScreen } from "@/app_modules/auth";
import { useShallowEffect } from "@mantine/hooks"; import { useShallowEffect } from "@mantine/hooks";
export default function Page() { export default function Page() {
// useShallowEffect(() => { useShallowEffect(() => {
// setTimeout(() => { setTimeout(() => {
// window.location.replace("/dev/home"); window.location.replace("/dev/home");
// }, 100); }, 1000);
// }, []); }, []);
// return <Login version={version} />;
// return <div>spash</div>;
return <SplashScreen />; return <SplashScreen />;
} }

View File

@@ -1,5 +1,6 @@
"use client"; "use client";
import { UIGlobal_LayoutDefault } from "@/app_modules/_global/ui";
import { Avatar, BackgroundImage, Center, Image, Stack } from "@mantine/core"; import { Avatar, BackgroundImage, Center, Image, Stack } from "@mantine/core";
import { useShallowEffect } from "@mantine/hooks"; import { useShallowEffect } from "@mantine/hooks";
import { useRouter } from "next/navigation"; import { useRouter } from "next/navigation";
@@ -15,11 +16,7 @@ export default function SplashScreen() {
return ( return (
<> <>
<BackgroundImage <UIGlobal_LayoutDefault>
src={"/aset/global/main_background.png"}
h={"100vh"}
// pos={"static"}
>
<Center h={"100vh"}> <Center h={"100vh"}>
<Stack align="center" justify="center" p={"md"}> <Stack align="center" justify="center" p={"md"}>
{/* <Title c={"#002e59"}>Welcome to</Title> */} {/* <Title c={"#002e59"}>Welcome to</Title> */}
@@ -33,7 +30,7 @@ export default function SplashScreen() {
</Avatar> </Avatar>
</Stack> </Stack>
</Center> </Center>
</BackgroundImage> </UIGlobal_LayoutDefault>
</> </>
); );
} }