分支无数据提示

This commit is contained in:
caishi 2021-10-23 17:00:06 +08:00 committed by caishi
parent 8634c330c4
commit fbaf19855a
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import { truncateCommitId } from '../../common/util';
import { Link } from 'react-router-dom';
import { getImageUrl , turnbar } from 'educoder';
import { Dropdown , Menu , Spin } from 'antd';
import Nodata from '../../Nodata';
import './Index.scss';
import Tree from '../img/tree.png';
@ -101,6 +102,9 @@ function Index(props) {
)
})
}
{
list && list.length === 0 && <Nodata _html="暂无数据"/>
}
</div>
</Spin>
)