From d73f2ee647cd15fa7083ecd538f60d847f32fa8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=99=AF=E5=AD=A6?= <5412262+sun_jing_xue@user.noreply.gitee.com> Date: Mon, 4 Aug 2025 16:55:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=20?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=8F=AA=E5=BC=B9=E5=87=BA=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index 6fe6b19..d8abae8 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -196,7 +196,15 @@ const HomeDashboard: React.FC = () => { { }} + onCancel={() => { + setShowChangePwd(false) + const userStr = sessionStorage.getItem('currentUser'); + if (userStr) { + const userObj = JSON.parse(userStr); + if (userObj?.supplierUser) userObj.supplierUser.firstLogin = 1; + sessionStorage.setItem('currentUser', JSON.stringify(userObj)); + } + }} />