Skip to content

Commit

Permalink
Merge pull request #317 from HXSecurity/release_2.0.1
Browse files Browse the repository at this point in the history
scan list&detail over
  • Loading branch information
Gedongy authored Mar 18, 2023
2 parents 5465788 + bb63dcc commit 93a62c2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/views/project/VulListComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -737,8 +737,8 @@ export default class VulListComponent extends VueBase {
params = {
page: this.page,
page_size: this.pageSize,
bind_project_id: this.projectId,
project_version_id: String(this.version),
bind_project_id: Number(this.projectId),
project_version_id: Number(this.version),
keywords: this.searchObj.keywords || undefined,
project_id: this.searchObj.project_str.join(',') || undefined,
vul_level_id: this.searchObj.level_str.join(',') || undefined,
Expand Down Expand Up @@ -850,12 +850,19 @@ export default class VulListComponent extends VueBase {
},
]
}
const params = {
let params
params = {
bind_project_id: this.projectId,
project_version_id: String(this.version),
type: this.vulnType,
}
if (this.vulnType === 'scan') {
params = {
bind_project_id: Number(this.projectId),
project_version_id: Number(this.version),
type: this.vulnType,
}
}
this.loadingStart()
let res
if (this.SummaryCatch[this.vulnType + 'version:' + this.version]) {
Expand Down

0 comments on commit 93a62c2

Please sign in to comment.