Commit 0937219f authored by 田翔's avatar 田翔

fix: 添加key

parent 8ffd93bb
......@@ -67,7 +67,7 @@ const FileView = (props) => {
{
fileList.map((v, i) => {
return (
<span className={styles.imgSpan} style={{ display: i == 0 ? 'inline-block' : 'none' }}>
<span className={styles.imgSpan} key={v} style={{ display: i == 0 ? 'inline-block' : 'none' }}>
{fileList.length !== 1 ? <span className={styles.imgSub}>{fileList.length}</span> : null}
<img
className={styles.img}
......
......@@ -15,7 +15,6 @@
}
.imgSub {
position: absolute;
z-index: 99;
top: 0;
right: 0;
background: red;
......
......@@ -13,7 +13,7 @@ const SelectView = (props) => {
tag.map((v, i) => {
let color = options.find(s => s.value === v)?.color
return (
<span style={{ margin: '0 5px' }}>
<span key={v} style={{ margin: '0 5px' }}>
{
color ? <TagPack color={color} text={v} /> : v
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment