修复bug

This commit is contained in:
yezian 2024-12-06 20:59:08 +08:00
parent e0beeb2608
commit f40391c987
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,8 @@ import { get } from "@/utils/storeInfo";
import { Toast } from "antd-mobile";
import { save } from "@/utils/storeInfo";
import { removeUserInfo } from "@/utils/storeInfo";
import { Dialog } from "antd-mobile";
export default function WithAuth(WrappedComponent) {
const router = useRouter();
@ -35,6 +37,7 @@ export default function WithAuth(WrappedComponent) {
});
}
}, []);
useEffect(() => {
if (searchParams.get("inviter")) {
save("inviter", Number(searchParams.get("inviter")));