分支列表没有显示

This commit is contained in:
caishi 2023-08-30 10:30:41 +08:00
parent 1f1abb41ab
commit 2748696b9f
1 changed files with 2 additions and 2 deletions

View File

@ -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 => {})