fix: replay pending action after login

This commit is contained in:
zetaloop
2026-02-22 06:36:49 +08:00
parent c04a1d5b71
commit 4ce7303258
4 changed files with 17 additions and 6 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export function useRequireAuth() {
if (isAuthenticated) {
action()
} else {
openLoginDialog()
openLoginDialog(action)
}
},
[isAuthenticated, openLoginDialog],