Skip to content

Commit

Permalink
Merge pull request #6895 from lockiechen/hotfix_release-1.8
Browse files Browse the repository at this point in the history
bug: 流水线列表页面Loading遮罩未消失问题 issue #6893
  • Loading branch information
irwinsun authored Jun 1, 2022
2 parents 98106ee + 44d98ed commit 0100af3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/frontend/devops-pipeline/src/views/list/newlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
if (val) {
this.filter = {}
this.currentFilter = {}
this.initPage()
// this.initPage()
this.$nextTick(() => {
if (this.$refs.infiniteScroll) {
this.$refs.infiniteScroll.fetchData()
Expand Down Expand Up @@ -363,7 +363,11 @@
this.slideShow = val
},
togglePageLoading (val) {
this.$store.commit('pipelines/showPageLoading', val)
if (this.pageLoading !== val) {
this.$nextTick(() => {
this.$store.commit('pipelines/showPageLoading', val)
})
}
},
calcLatestStartBuildTime (row) {
if (row.latestBuildStartTime) {
Expand Down Expand Up @@ -422,12 +426,8 @@
},
async initPage () {
performance.mark('initList:start')
this.togglePageLoading(true)
await this.init()
performance.mark('initList:end')
performance.measure('initList', 'initList:start', 'initList:end')
this.togglePageLoading(false)
},
Expand Down

0 comments on commit 0100af3

Please sign in to comment.