StackedRouter: add replace: all

This commit is contained in:
thislight 2024-11-23 23:58:20 +08:00
parent 4c717a0cb7
commit 83e2e6e169
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
2 changed files with 15 additions and 7 deletions

View file

@ -64,7 +64,7 @@ export function useSessions() {
if (sessions().length > 0) return;
push(
"/accounts/sign-in?back=" + encodeURIComponent(location.pathname),
{ replace: true },
{ replace: "all" },
);
});