From e7eb870630ec21f74d3f880e5217be2a3d45e66b Mon Sep 17 00:00:00 2001 From: qmj <37242163+qmj666@users.noreply.github.com> Date: Wed, 14 Jan 2026 08:55:05 +0800 Subject: [PATCH] 去除登录界面缓存 --- src/mes/login/index.js | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/mes/login/index.js b/src/mes/login/index.js index a5c773b..16f135c 100644 --- a/src/mes/login/index.js +++ b/src/mes/login/index.js @@ -211,7 +211,7 @@ const useLoginEvent = props => { sShift, sEmployeeNo }; - + if (!sEmployeeNo) { value.username = username; } @@ -318,21 +318,21 @@ const useLoginEvent = props => { `${commonConfig.prefix}userlogin`, JSON.stringify(userinfo) ); - localStorage.setItem( - `${commonConfig.prefix}plcMachinedata_${sMachineId}`, - JSON.stringify(plcMachinedata) - ); - localStorage.setItem( - `${commonConfig.prefix}statusData_${sMachineId}`, - JSON.stringify(statusData) - ); - const { masterData = {} } = props; - const storeMasterData = JSON.parse(JSON.stringify(masterNewData)); - delete storeMasterData?.sPassWord; - localStorage.setItem( - `${commonConfig.prefix}masterData`, - JSON.stringify(storeMasterData) - ) + // localStorage.setItem( + // `${commonConfig.prefix}plcMachinedata_${sMachineId}`, + // JSON.stringify(plcMachinedata) + // ); + // localStorage.setItem( + // `${commonConfig.prefix}statusData_${sMachineId}`, + // JSON.stringify(statusData) + // ); + // const { masterData = {} } = props; + // const storeMasterData = JSON.parse(JSON.stringify(masterNewData)); + // delete storeMasterData?.sPassWord; + // localStorage.setItem( + // `${commonConfig.prefix}masterData`, + // JSON.stringify(storeMasterData) + // ) handleUserlogin({ token, -- libgit2 0.22.2