valentichu 1 năm trước cách đây
mục cha
commit
027c40cf7e
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 0 0
      lib/index.js
  2. 3 2
      src/pages/Alarm/components/detail.jsx

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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");
                               }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác