chores: updates

This commit is contained in:
Tristan Yang
2023-07-27 19:15:20 +08:00
parent 32b4793aed
commit 44e4ff3ec5
16 changed files with 9 additions and 27 deletions
-1
View File
@@ -21,7 +21,6 @@ const RequireAuth: FC<Props> = ({ children, redirectTo = "/login" }) => {
const { data: loginConfig, isSuccess: loginConfigSuccess } = useGetLoginConfigQuery();
const { isLoading: checkingInitialized } = useGetInitializedQuery();
const { token, guest, initialized } = useAppSelector((store) => store.authData);
// console.log("auth route", { checkingInitialized, loginConfigSuccess, initialized, guest: loginConfig?.guest, token, allowGuest, guest });
// 初始化和login配置检查
if (checkingInitialized || !loginConfigSuccess) return <Loading fullscreen={true} />;