Sfoglia il codice sorgente

fix: drawer not setCurrentRow null

chenshuai2144 4 anni fa
parent
commit
75161358a5
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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 || {}}