forked from Gitlink/forgeplus-react
Merge pull request '标签无数据提示问题' (#141) from caishi/forgeplus-react:pre_develop_dev into pre_develop_dev
This commit is contained in:
commit
8cb0e32afa
|
@ -11,7 +11,7 @@ import moment from 'moment';
|
||||||
|
|
||||||
function Tags(props) {
|
function Tags(props) {
|
||||||
|
|
||||||
const [ source , setSource ] = useState([]);
|
const [ source , setSource ] = useState(undefined);
|
||||||
const [ isSpin , setIsSpin ] = useState(true);
|
const [ isSpin , setIsSpin ] = useState(true);
|
||||||
|
|
||||||
const { projectsId , owner } = props.match.params;
|
const { projectsId , owner } = props.match.params;
|
||||||
|
@ -99,18 +99,19 @@ function Tags(props) {
|
||||||
return(
|
return(
|
||||||
<div>
|
<div>
|
||||||
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
|
<SubMenu tab={"tags"} projectsId={projectsId} owner={owner}/>
|
||||||
{
|
<div className="tagSpin">
|
||||||
source && source.length > 0 ?
|
<Spin spinning={isSpin}>
|
||||||
<div className="tagSpin">
|
{
|
||||||
<Spin spinning={isSpin}>
|
source && source.length > 0 &&
|
||||||
<Table
|
<Table
|
||||||
className="tagTable"
|
className="tagTable"
|
||||||
dataSource={source} columns={columns} pagination={false}></Table>
|
dataSource={source} columns={columns} pagination={false}></Table>
|
||||||
</Spin>
|
}
|
||||||
</div>
|
{
|
||||||
:
|
source && source.length === 0 && <Nonedata _html={'暂无数据~'}/>
|
||||||
<Nonedata _html={'暂无数据~'}/>
|
}
|
||||||
}
|
</Spin>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue