fix: 更新遗漏的tag处理

This commit is contained in:
chenjinsong
2023-10-23 13:42:42 +08:00
parent d8865b74d7
commit b90810470e
5 changed files with 7 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ import _ from 'lodash'
import i18n from '@/i18n'
import axios from 'axios'
import { api } from '@/utils/api'
import { entityDefaultColor, entityDetailTags, psiphon3IpType } from '@/utils/constants'
import { entityDefaultColor, entityDetailTags, tagValueLabelMapping } from '@/utils/constants'
export default class Node {
/*
@@ -145,7 +145,7 @@ export default class Node {
tagValueHandler (k, k2, value) {
if (k === 'psiphon3Ip') {
if (k2 === 'type') {
const find = psiphon3IpType.find(t => t.value === value)
const find = tagValueLabelMapping.find(t => t.value === value)
if (find) {
return find.name
}