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 { useShallowEffect } from "@mantine/hooks";
export default function Page() {
// useShallowEffect(() => {
// setTimeout(() => {
// window.location.replace("/dev/home");
// }, 100);
// }, []);
useShallowEffect(() => {
setTimeout(() => {
window.location.replace("/dev/home");
}, 1000);
}, []);
// return <Login version={version} />;
// return <div>spash</div>;
return <SplashScreen />;
}

View File

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