分支列表没有显示
This commit is contained in:
parent
1f1abb41ab
commit
2748696b9f
|
@ -21,8 +21,8 @@ function Tags(props) {
|
|||
if (projectsId) {
|
||||
const url = `/${owner}/${projectsId}/tags.json`;
|
||||
axios.get(url).then((result) => {
|
||||
if (result) {
|
||||
setSource(result.data);
|
||||
if (result && result.data) {
|
||||
setSource(result.data.tags);
|
||||
setIsSpin(false);
|
||||
}
|
||||
}).catch(error => {})
|
||||
|
|
Loading…
Reference in New Issue