fix
This commit is contained in:
parent
daf31d6858
commit
f8d69be0df
|
|
@ -3,8 +3,10 @@ import day from "dayjs";
|
||||||
const w = window as any;
|
const w = window as any;
|
||||||
export type RG = {
|
export type RG = {
|
||||||
data: any;
|
data: any;
|
||||||
|
role: string;
|
||||||
expired: number; // second
|
expired: number; // second
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserSession = {
|
export type UserSession = {
|
||||||
data: any;
|
data: any;
|
||||||
expired: Date; // second
|
expired: Date; // second
|
||||||
|
|
|
||||||
|
|
@ -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;
|
if (!w.user && !isEditor) return props.blank_layout;
|
||||||
|
|
||||||
return <>{props.default_layout}</>;
|
return <>{props.default_layout}</>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue