fix: 修复因subscriber实体类型为subscriber_id导致实体详情打开报错的问题

This commit is contained in:
刘洪洪
2024-03-25 17:20:06 +08:00
parent b1ad779691
commit 56e417c92a

View File

@@ -124,10 +124,14 @@ export default {
},
methods: {
showDetail () {
let entityType = _.cloneDeep(this.entityData.entityType)
if (entityType === 'subscriber_id') {
entityType = entityType.slice(0, -3)
}
const { href } = this.$router.resolve({
path: '/entity/detail',
query: {
entityType: this.entityData.entityType,
entityType: entityType,
entityName: this.entityData.entityValue,
range: this.timeFilter.dateRangeValue
}