소스 검색

fix: drawer not setCurrentRow null

chenshuai2144 4 년 전
부모
커밋
75161358a5
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/pages/TableList/index.tsx

+ 3 - 1
src/pages/TableList/index.tsx

@@ -355,7 +355,9 @@ const TableList: React.FC = () => {
         }}
         onCancel={() => {
           handleUpdateModalVisible(false);
-          setCurrentRow(undefined);
+          if (!showDetail) {
+            setCurrentRow(undefined);
+          }
         }}
         updateModalVisible={updateModalVisible}
         values={currentRow || {}}