Explorar o código

feat(firmware): clean state data

Lind %!s(int64=4) %!d(string=hai) anos
pai
achega
1ba314f8c1
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/pages/device/Firmware/Detail/History/index.tsx

+ 4 - 0
src/pages/device/Firmware/Detail/History/index.tsx

@@ -13,6 +13,10 @@ const History = () => {
     if (state.historyParams) {
       setParams({ ...state.historyParams });
     }
+    return () => {
+      state.historyParams = undefined;
+      state.taskItem = undefined;
+    };
   }, []);
   const columns: ProColumns<HistoryItem>[] = [
     {