fix: token not stored after login

This commit is contained in:
CrescentLeaf
2025-09-08 21:22:22 +08:00
parent 4a942f1e77
commit e2c385b559
2 changed files with 2 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ const _data_cached = JSON.parse(_dec)
declare global {
interface Window {
data: {
apply(): void
access_token?: string
}
}

View File

@@ -35,6 +35,7 @@ export default function LoginDialog({
if (checkApiSuccessOrSncakbar(re, "登錄失敗")) return
data.access_token = re.data!.access_token as string
data.apply()
location.reload()
})
return (