fix: login persistence, username login, realtime refresh, group name uniqueness

- Fix cookie path to '/' for auth persistence across page refreshes
- Login field now accepts both username and email
- Add 30s polling for group list and team session status refresh
- Add group name uniqueness check before creation

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
congsh
2026-04-18 01:24:12 +08:00
parent c76346294a
commit 9405406c47
4 changed files with 35 additions and 10 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ pb.authStore.loadFromCookie(document.cookie)
// 保存认证状态到 cookie
pb.authStore.onChange(() => {
document.cookie = pb.authStore.exportToCookie({ httpOnly: false })
document.cookie = pb.authStore.exportToCookie({ httpOnly: false, path: '/' })
})
// 获取当前用户