Explorar o código

救济退出登录清理数据

zhejiushizhuce %!s(int64=2) %!d(string=hai) anos
pai
achega
588da5b587
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/features/protectSlice.js

+ 3 - 1
src/features/protectSlice.js

@@ -46,7 +46,9 @@ export const ProtectSlice = createSlice({
         }
     },
     reducers: {
-
+        onSliceChangeUser:((state, action) => {
+            state.protectInfo= {};
+        }),
     },
     extraReducers: (builder) => {
         buildReqReducer(builder,reqProtectCheck,reducerProtectCheck,protectCheckStatus);