debug: guard

This commit is contained in:
haitaoo
2023-04-25 12:17:12 +08:00
parent ddaf4b7863
commit 55aeec174c
+1
View File
@@ -33,6 +33,7 @@ const routes: RouteNode[] = [
guard: () => {
const gr = guard.shouldLoginRequired();
if (!gr.ok) {
alert(`LoginRequired: ${window.location.pathname}`);
return gr;
}
return guard.notForbidden();