Commit 56a6f0da authored by 张烨's avatar 张烨

fix: 修复部分图片未展示

parent f43508ce
// const pickType = {
// WEB_ICON: 'WEB_ICON',
// WEB_ASSETS: 'WEB_ASSETS',
// ALL: 'ALL'
// };
// const firstCategry = {
// [pickType.ALL]: ['CityTemp', 'icon', 'androidMenu', 'menuNew'],
// [pickType.WEB_ICON]: ['CityTemp', 'logo'],
// [pickType.WEB_ASSETS]: ['CityTemp', 'menuNew'],
// }
// const secondCategry = {
// [pickType.ALL]: []
// }
// const filterFactory = (type) => {
// }
// export default {
// [pickType.WEB_ICON]:
// };
......@@ -389,6 +389,14 @@ class PicturesWall extends React.Component<PicturesWallType> {
>
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}>
{imgBed.map((item, i) => {
const child = [...item.child] || [];
if(item.fileUrls.length > 0){
child.push({
moduleName: item.moduleName,
fileUrls: item.fileUrls,
child: [],
})
}
return (
<TabPane tab={tabNames[item.moduleName]||item.moduleName} key={item.moduleName}>
<Input
......@@ -403,7 +411,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
bordered
activeKey={actives[item.moduleName]}
onChange={(v) => this.handleCollapseChange(v, item.moduleName)}>
{item.child?.map(child => this.renderCollapse(child))}
{child.map(child => this.renderCollapse(child))}
</Collapse>
</div>
</TabPane>
......
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