From 705572b24534e489715acb8bd8a6baa7bf4a2083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Tue, 2 Jan 2024 10:42:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E3=80=81=E6=A3=80=E6=B5=8B=E7=95=8C=E9=9D=A2=E5=9B=A0=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E6=89=93=E5=BC=80=EF=BC=8C=E4=BB=A5=E5=8F=8A=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E7=95=8C=E9=9D=A2=E9=83=A8=E5=88=86=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/layout/Header.vue | 111 ++++++++++++------ src/router/index.js | 2 +- src/utils/constants.js | 2 +- .../entityDetail/tabs/PerformanceEvent.vue | 2 +- .../entityDetail/tabs/SecurityEvent.vue | 13 +- src/views/entityExplorer/EntityExplorer.vue | 2 +- 6 files changed, 84 insertions(+), 48 deletions(-) diff --git a/src/components/layout/Header.vue b/src/components/layout/Header.vue index 1eac0a6e..f8351cc2 100644 --- a/src/components/layout/Header.vue +++ b/src/components/layout/Header.vue @@ -125,7 +125,7 @@ :show-close="false" >
@@ -109,14 +109,7 @@ export default { } }, mounted () { - // this.initData() - this.isNoData = true - this.$emit('checkTag', entityDetailTabsName.securityEvent, 0) - this.toggleLoading(true) - const timer = setTimeout(() => { - this.toggleLoading(false) - clearInterval(timer) - }, 200) + this.initData() }, methods: { unitConvert, diff --git a/src/views/entityExplorer/EntityExplorer.vue b/src/views/entityExplorer/EntityExplorer.vue index 2566f748..3b656490 100644 --- a/src/views/entityExplorer/EntityExplorer.vue +++ b/src/views/entityExplorer/EntityExplorer.vue @@ -389,7 +389,7 @@ export default { if (!this.showList) { // 首页进入搜索时重载页面,视觉上进入列表页面 this.$router.push({ - path: '/entityExplorer', + path: '/entity', query: { listMode: this.listMode, q: urlQ,