fix:修改 页面默认 为详细视图时 detailType 会变为 undefind的问题

This commit is contained in:
zhangyu
2022-09-19 15:39:59 +08:00
parent 4241804787
commit 9fb07dcbf4

View File

@@ -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)