From 9fb07dcbf44a5c86b003efe965f23d8bf55b9424 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 19 Sep 2022 15:39:59 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=20=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=BB=98=E8=AE=A4=20=E4=B8=BA=E8=AF=A6=E7=BB=86?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E6=97=B6=20=20detailType=20=E4=BC=9A?= =?UTF-8?q?=E5=8F=98=E4=B8=BA=20undefind=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/mixin/routerPathParams.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nezha-fronted/src/components/common/mixin/routerPathParams.js b/nezha-fronted/src/components/common/mixin/routerPathParams.js index 661e473ae..2f10923ef 100644 --- a/nezha-fronted/src/components/common/mixin/routerPathParams.js +++ b/nezha-fronted/src/components/common/mixin/routerPathParams.js @@ -35,7 +35,7 @@ export default { this.$refs[detailType].bottomBox.targetTab = q.targetTab this.$refs[detailType].bottomBox.object = JSON.parse(q.selectObj) }) - } else if (this.detailType === 'view') { + } else if (this.detailType === 'view' && q.detailType && q.selectObj) { this.detailType = q.detailType this.detailViewRightObj = JSON.parse(q.selectObj) this.$store.commit('setGlobalSearchId', this.detailViewRightObj.id)