From 55aeec174cc59a98c5b6286780927d0ed34e05fe Mon Sep 17 00:00:00 2001 From: haitaoo Date: Tue, 25 Apr 2023 12:17:12 +0800 Subject: [PATCH] debug: guard --- ui/src/router/routes.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index e948fcde..7a173b61 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -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();