Skip to content

Commit

Permalink
fix: Fix the download URL of the artifacts in the single cluster
Browse files Browse the repository at this point in the history
Signed-off-by: harrisonliu5 <harrisonliu_5@163.com>
  • Loading branch information
harrisonliu5 committed Jul 21, 2020
1 parent c411ac8 commit aa5a3dc
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ export default class Artifacts extends React.Component {

getDownloadUrl = url => {
const { params } = this.props.match
return `/kapis/clusters/${
params.cluster
}/devops.kubesphere.io/v1alpha2/jenkins${url}`
return params.cluster === 'default' || !params.cluster
? `/kapis/devops.kubesphere.io/v1alpha2/jenkins${url}`
: `/kapis/clusters/${
params.cluster
}/devops.kubesphere.io/v1alpha2/jenkins${url}`
}

getFilteredValue = dataIndex => this.store.list.filters[dataIndex]
Expand Down

0 comments on commit aa5a3dc

Please sign in to comment.