|
|
@@ -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");
|
|
|
}
|