Skip to content

Commit

Permalink
bug: stream 流水线下,刷新页面加载了全量的列表 TencentBlueKing#10152
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 5463
  • Loading branch information
vhwweng committed Apr 10, 2024
1 parent 74789a4 commit 7c4c3e4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/frontend/devops-stream/src/views/pipeline/build-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@
yamlErrorMessage: ''
}
},
beforeRouteEnter (to, from, next) {
next((vm) => {
vm.initBuildData()
})
},
computed: {
...mapState(['curPipeline', 'projectId', 'projectInfo', 'permission']),
Expand Down Expand Up @@ -441,6 +447,7 @@
curPipeline: {
handler (newVal, oldVal) {
if (Object.keys(oldVal).length) this.cleanFilterData()
if (!Object.keys(oldVal).length) return
this.initBuildData()
}
}
Expand Down

0 comments on commit 7c4c3e4

Please sign in to comment.