This commit is contained in:
Rizky 2024-06-23 22:34:51 -07:00
parent daf31d6858
commit f8d69be0df
2 changed files with 3 additions and 0 deletions

View File

@ -3,8 +3,10 @@ import day from "dayjs";
const w = window as any;
export type RG = {
data: any;
role: string;
expired: number; // second
};
export type UserSession = {
data: any;
expired: Date; // second

View File

@ -77,6 +77,7 @@ export const Layout: FC<LYTChild> = (props) => {
}
}
if (path === props.login_url) return props.blank_layout;
if (!w.user && !isEditor) return props.blank_layout;
return <>{props.default_layout}</>;