Update index.tsx
This commit is contained in:
parent
eadc98fbbe
commit
e45384c855
|
@ -1,3 +1,10 @@
|
||||||
|
import { useRouter } from "next/router";
|
||||||
|
import { useEffect } from "react";
|
||||||
|
|
||||||
export default function Index() {
|
export default function Index() {
|
||||||
return null;
|
const router = useRouter();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
router.push("/login");
|
||||||
|
}, []);
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue