refactor: reorder the reg link

This commit is contained in:
Tristan Yang
2023-03-13 18:28:19 +08:00
parent a80c57933d
commit a52ee389c9
2 changed files with 8 additions and 6 deletions
+6
View File
@@ -1,6 +1,12 @@
import { useEffect } from "react";
import { Outlet } from "react-router-dom";
export default function RegContainer() {
useEffect(() => {
// 重新组织url
location.href = `${location.origin}${location.hash}${location.search}`;
}, [location]);
return (
<div className="flex-center h-screen overflow-x-hidden overflow-y-auto dark:bg-gray-700">
<div className="py-8 px-10 shadow-md rounded-xl">