From 8c370f376460dc36bf7df845ebc666d3ac0e368f Mon Sep 17 00:00:00 2001 From: ziijiawen Date: Fri, 22 Apr 2022 11:07:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E9=A1=B5=E6=94=B6=E8=97=8F=E6=A3=80=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/build/config.js | 2 +- web/src/views/retrieve2/index.vue | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/web/build/config.js b/web/build/config.js index a557a43df..72c0cddb3 100644 --- a/web/build/config.js +++ b/web/build/config.js @@ -51,7 +51,7 @@ export default { NODE_ENV: JSON.stringify('development'), }, port: 8004, - localDevUrl: '', + localDevUrl: 'http://local.paas-dev.bktencent.com', localDevPort: 8004, assetsSubDirectory: 'static', assetsPublicPath: '/', diff --git a/web/src/views/retrieve2/index.vue b/web/src/views/retrieve2/index.vue index 5e8927933..7bd963808 100644 --- a/web/src/views/retrieve2/index.vue +++ b/web/src/views/retrieve2/index.vue @@ -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) { @@ -486,7 +490,6 @@ export default { .catch((err) => { console.warn(err); }); - this.fetchPageData(); }, mounted() { if (!this.isHideAutoQueryTips) { @@ -657,7 +660,6 @@ export default { } } this.isNoIndexSet = false; - this.requestFavoriteList(); } else { // 无索引集 this.isRetrieveHome = false; this.isNoIndexSet = true; From fe558f9602d1fa05d74541b7b943bf271ef9a87e Mon Sep 17 00:00:00 2001 From: ziijiawen Date: Fri, 22 Apr 2022 11:07:39 +0800 Subject: [PATCH 2/2] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E9=A1=B5=E6=94=B6=E8=97=8F=E6=A3=80=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/build/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/build/config.js b/web/build/config.js index 72c0cddb3..a557a43df 100644 --- a/web/build/config.js +++ b/web/build/config.js @@ -51,7 +51,7 @@ export default { NODE_ENV: JSON.stringify('development'), }, port: 8004, - localDevUrl: 'http://local.paas-dev.bktencent.com', + localDevUrl: '', localDevPort: 8004, assetsSubDirectory: 'static', assetsPublicPath: '/',