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

fix: 添加key

parent 8ffd93bb
...@@ -67,7 +67,7 @@ const FileView = (props) => { ...@@ -67,7 +67,7 @@ const FileView = (props) => {
{ {
fileList.map((v, i) => { fileList.map((v, i) => {
return ( 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} {fileList.length !== 1 ? <span className={styles.imgSub}>{fileList.length}</span> : null}
<img <img
className={styles.img} className={styles.img}
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
} }
.imgSub { .imgSub {
position: absolute; position: absolute;
z-index: 99;
top: 0; top: 0;
right: 0; right: 0;
background: red; background: red;
......
...@@ -13,7 +13,7 @@ const SelectView = (props) => { ...@@ -13,7 +13,7 @@ const SelectView = (props) => {
tag.map((v, i) => { tag.map((v, i) => {
let color = options.find(s => s.value === v)?.color let color = options.find(s => s.value === v)?.color
return ( return (
<span style={{ margin: '0 5px' }}> <span key={v} style={{ margin: '0 5px' }}>
{ {
color ? <TagPack color={color} text={v} /> : v 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