Skip to content

Commit

Permalink
bug:opdata 仓库大小统计页面问题修复 #1455 (#1459)
Browse files Browse the repository at this point in the history
  • Loading branch information
lannoy0523 authored Nov 20, 2023
1 parent 9773e14 commit 1106e79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/devops-op/src/utils/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import store from '@/store'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
// withCredentials: true, // send cookies when cross-domain requests
timeout: 5000 // request timeout
timeout: 1000 * 60 * 5 // request timeout
})

// request interceptor
Expand Down
4 changes: 3 additions & 1 deletion src/frontend/devops-op/src/views/node/ProjectMetrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export default {
} else {
realType = this.type
}
const url = '/opdata/api/project/metrics/list/project/capSize/download/?' + (this.limitSize === '' ? '' : 'limitSize=' + this.limitSize * 1024 * 1024 * 1024 + '&') + 'type=' + realType
const url = '/opdata/api/project/metrics/list/project/capSize/download/?' +
(this.limitSize === '' ? '' : 'limitSize=' + this.limitSize * 1024 * 1024 * 1024 + '&') +
(realType === null ? '' : 'type=' + realType)
window.open(
'/web' + url,
'_self'
Expand Down

0 comments on commit 1106e79

Please sign in to comment.