Sfoglia il codice sorgente

救济退出登录清理数据

zhejiushizhuce 2 anni fa
parent
commit
588da5b587
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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);