refactor: search params in reg

This commit is contained in:
Tristan Yang
2023-03-16 21:13:02 +08:00
parent 5726dcd239
commit 3fd8963f1e
8 changed files with 15 additions and 198 deletions
-5
View File
@@ -1,11 +1,6 @@
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">