修复个人建站loading问题
This commit is contained in:
parent
e4474420a8
commit
ad0515553d
|
|
@ -32,9 +32,11 @@ function Pages(props) {
|
|||
// 获取站点列表
|
||||
axios.get(`/site_pages/x.json`, {params:{owner, repo: projectsId}}).then(res=>{
|
||||
if(res && res.status === 200){
|
||||
const {last_build_info} = res.data.data
|
||||
setPageInfo(res.data.data);
|
||||
last_build_info && last_build_info.length && setResult(last_build_info);
|
||||
if(res.data.data){
|
||||
const {last_build_info} = res.data.data;
|
||||
last_build_info && last_build_info.length && setResult(last_build_info);
|
||||
}
|
||||
}
|
||||
setLoading(false);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue