ソースを参照

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 || {}}