Skip to content

Commit

Permalink
Merge pull request #908 from TencentBlueKing/hotfix_favorite-retrieve
Browse files Browse the repository at this point in the history
bugfix: 修复检索页收藏检索条件异常
  • Loading branch information
zijiaone authored Apr 22, 2022
2 parents 02494ef + fe558f9 commit 497c6d8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions web/src/views/retrieve2/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,17 @@ export default {
this.$store.commit('updateIndexId', val);
val && this.requestSearchHistory(val);
},
projectId() {
this.indexId = '';
this.indexSetList.splice(0);
this.favoriteList.splice(0);
this.totalFields.splice(0);
this.retrieveParams.bk_biz_id = this.bkBizId;
this.fetchPageData();
projectId: {
handler() {
this.indexId = '';
this.requestFavoriteList();
this.indexSetList.splice(0);
this.favoriteList.splice(0);
this.totalFields.splice(0);
this.retrieveParams.bk_biz_id = this.bkBizId;
this.fetchPageData();
},
immediate: true,
},
isSearchAllowed(val) {
if (val && this.isRetrieveHome) {
Expand Down Expand Up @@ -486,7 +490,6 @@ export default {
.catch((err) => {
console.warn(err);
});
this.fetchPageData();
},
mounted() {
if (!this.isHideAutoQueryTips) {
Expand Down Expand Up @@ -657,7 +660,6 @@ export default {
}
}
this.isNoIndexSet = false;
this.requestFavoriteList();
} else { // 无索引集
this.isRetrieveHome = false;
this.isNoIndexSet = true;
Expand Down

0 comments on commit 497c6d8

Please sign in to comment.