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)); + } + }} />