From beabbaefc0b77bc569e2b97edf9d697447b4e98e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com>
Date: Tue, 14 Jul 2026 23:16:23 +0800
Subject: [PATCH] =?UTF-8?q?feat(auth):=20=E5=AE=9E=E7=8E=B0=E7=A6=81?=
=?UTF-8?q?=E7=94=A8=E7=94=A8=E6=88=B7=E6=8B=A6=E6=88=AA=E6=9C=BA=E5=88=B6?=
=?UTF-8?q?=E9=98=B2=E6=AD=A2=E7=A6=81=E7=94=A8=E7=94=A8=E6=88=B7=E8=AE=BF?=
=?UTF-8?q?=E9=97=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 新增工具函数 isUserDisabled 判断用户是否被禁用
- 新增 blockDisabledUser 函数拦截禁用用户,清除登录态弹窗提示并跳转登录页
- UserContext 启动时异步校验用户状态,禁用则拦截并退出
- UserContext 的 refreshUser、syncFromStorage、loginUser 接口均增加禁用检查
- 登录相关 API 登录前校验用户状态,禁用时拒绝登录
- 登录页面保存登录态前校验,禁用用户弹窗提示阻断登录流程
- 用户状态定义:status 0 为正常,1 为禁用
- 新增用户管理页支持查询和管理用户状态
- 文档中补充用户状态与禁用机制说明及拦截层级介绍
---
src/pages/store/center/index.tsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pages/store/center/index.tsx b/src/pages/store/center/index.tsx
index aefbe92..7e3c984 100644
--- a/src/pages/store/center/index.tsx
+++ b/src/pages/store/center/index.tsx
@@ -248,9 +248,9 @@ export default function StoreCenterPage() {
去开启
-
- 未来更多功能将持续上线
-
+ {/**/}
+ {/* 未来更多功能将持续上线*/}
+ {/**/}
)