valentichu 1 년 전
부모
커밋
027c40cf7e
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 0
      lib/index.js
  2. 3 2
      src/pages/Alarm/components/detail.jsx

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 0 - 0
lib/index.js


+ 3 - 2
src/pages/Alarm/components/detail.jsx

@@ -71,7 +71,7 @@ const Detail = (props) => {
     if (newRecord) {
       const newTags = _.clone(tags);
       const currentIndex = newTags.findIndex((item) => item.id === current);
-      newTags[currentIndex] = newRecord;
+      newTags[currentIndex].data = newRecord;
       setTags(newTags);
     }
   };
@@ -112,7 +112,8 @@ const Detail = (props) => {
                           <div className={styles.label}>详情{index + 1}</div>
                           <CloseOutlined
                             style={{ fontSize: 10 }}
-                            onClick={() => {
+                            onClick={(e) => {
+                              e.stopPropagation();
                               if (current === item.id) {
                                 setCurrent("history");
                               }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.