Commit 6f8d9dbe authored by 涂伟's avatar 涂伟

fix: '新建表逻辑判断优化'

parent 5dddd598
Pipeline #69655 passed with stages
......@@ -42,18 +42,22 @@ const ChooseTableType = props => {
<div className={styles.groupName}>{item}</div>
</div>
<div className={styles.tableContent}>
{tableList[item].map(ele => (
<div
className={styles.tableBox}
key={ele.value}
onClick={() => createTable(ele.value)}
>
<div className={styles.imgBox}>
<img src={`${window.location.origin}/civmanage/${ele.icon}`} alt="" />
</div>
<div className={styles.title}>{ele.value}</div>
</div>
))}
{tableList[item].map(ele => {
if (!ele.hidden) {
return (
<div
className={styles.tableBox}
key={ele.value}
onClick={() => createTable(ele.value)}
>
<div className={styles.imgBox}>
<img src={`${window.location.origin}/civmanage/${ele.icon}`} alt="" />
</div>
<div className={styles.title}>{ele.value}</div>
</div>
);
}
})}
</div>
</div>
))}
......
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