소스 검색

feat(firmware): clean state data

Lind 4 년 전
부모
커밋
1ba314f8c1
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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>[] = [
     {