refactor(auth): 重构认证流程和会话管理

This commit is contained in:
JiaJun
2026-04-23 16:10:27 +08:00
parent d1ee6413a5
commit f6f50ee6c7
12 changed files with 117 additions and 86 deletions

View File

@@ -371,6 +371,14 @@ function OrdersTabContent({
})
const orderRecords = ordersQuery.data ?? []
if (!sessionId) {
return (
<div className="liquid-glass-bg px-[16px] py-[18px] text-[14px] text-white/60">
{t('validation.verificationRequired')}
</div>
)
}
if (ordersQuery.isPending) {
return (
<div className="liquid-glass-bg px-[16px] py-[18px] text-[14px] text-white/60">
@@ -412,6 +420,14 @@ function PointsTabContent({sessionId}: {sessionId: string}) {
})
const pointsRecords = pointsLogsQuery.data ?? []
if (!sessionId) {
return (
<div className="liquid-glass-bg px-[16px] py-[18px] text-[14px] text-white/60">
{t('validation.verificationRequired')}
</div>
)
}
if (pointsLogsQuery.isPending) {
return (
<div className="liquid-glass-bg px-[16px] py-[18px] text-[14px] text-white/60">