From 67b510923b4fa370eadcc805eb53db3875fe216e Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Tue, 23 Feb 2021 14:45:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=A1=8C=E7=89=88=20-loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Version/version.js | 69 +++++++++++++++++------------------- 1 file changed, 32 insertions(+), 37 deletions(-) diff --git a/src/forge/Version/version.js b/src/forge/Version/version.js index 7a536890..14c3d6e3 100644 --- a/src/forge/Version/version.js +++ b/src/forge/Version/version.js @@ -58,45 +58,40 @@ class version extends Component { renderList = (releases) => { const { projectsId , owner } = this.props.match.params; - const { isSpin } = this.state; if (releases && releases.length > 0) { return ( - - { - releases.map((item, key) => { - return ( -
- - {item.draft} - {item.created_at} - - - {item.tag_name} - + releases.map((item, key) => { + return ( +
+ + {item.draft} + {item.created_at} + + + {item.tag_name} -
- - {item.name} - (编辑) - - - this.showBody(key,item.bodyshow)}> - {item.user_name}:发布了这个版本,并在发布后提交给{item.target_commitish} - - { - item.bodyshow && - } - -

- TAR - ZIP -

-
+
+
+ + {item.name} + (编辑) + + + this.showBody(key,item.bodyshow)}> + {item.user_name}:发布了这个版本,并在发布后提交给{item.target_commitish} + + { + item.bodyshow && + } + +

+ TAR + ZIP +

- ) - }) - } - +
+ ) + }) ) } else if (releases && releases.length === 0) { return ( ) @@ -105,7 +100,7 @@ class version extends Component { render() { const { projectsId ,owner } = this.props.match.params; - const { data , releases } = this.state + const { data , releases , isSpin } = this.state return (
@@ -118,7 +113,7 @@ class version extends Component { }
- {this.renderList(releases)} +
{this.renderList(releases)}
)