refactor(auth): 重构认证流程和会话管理
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user