perf: 优化更新平台时协议如果是http显示为http(s)

This commit is contained in:
“huailei000”
2023-05-16 11:01:29 +08:00
committed by Jiangjie.Bai
parent 211933349e
commit 83a116c094

View File

@@ -82,6 +82,12 @@ export default {
if (obj['category'] && obj['type']) { if (obj['category'] && obj['type']) {
obj['category_type'] = [obj['category'].value, obj['type'].value] obj['category_type'] = [obj['category'].value, obj['type'].value]
} }
obj.protocols = obj.protocols.map(i => {
if (i.name === 'http') {
i.display_name = 'http(s)'
}
return i
})
return obj return obj
}, },
defaultOptions: {} defaultOptions: {}