Skip to content

Commit

Permalink
bug: 代码库-触发事件流水线名称改成流水线ID搜索 #10114
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 5320
  • Loading branch information
vhwweng committed Apr 8, 2024
1 parent f9ba361 commit 094d0e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</section>
<EmptyTableStatus
v-else
v-bkloading="{ isLoading: pageLoading }"
:type="isSearch ? 'search-empty' : 'empty'"
@clear="resetFilter"
/>
Expand Down Expand Up @@ -370,6 +371,7 @@
},
async handleRefresh () {
this.page = 1
this.pageLoading = true
this.hasLoadEnd = false
await this.getListData()
Expand Down
18 changes: 4 additions & 14 deletions src/frontend/devops-codelib/src/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,6 @@
sortType = this.sortType
) {
if (!this.userId) this.isLoading = true
this.$router.push({
query: {
...this.$route.query,
sortBy,
sortType
}
})
await this.requestList({
projectId,
aliasName,
Expand Down Expand Up @@ -352,13 +345,10 @@
this.sortBy = sortBy
this.sortType = sortType
this.refreshCodelibList()
if (sortBy && sortType) {
localStorage.setItem('codelibSortType', sortType)
localStorage.setItem('codelibSortBy', sortBy)
} else {
localStorage.removeItem('codelibSortType')
localStorage.removeItem('codelibSortBy')
}
localStorage.setItem('codelibSortType', sortType)
localStorage.setItem('codelibSortBy', sortBy)
const queryKeys = Object.keys((this.$route?.query))
if (!queryKeys.length) return
this.$router.push({
query: {
...this.$route.query,
Expand Down

0 comments on commit 094d0e2

Please sign in to comment.