mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 07:09:14 +00:00
perf: 优化更新平台时协议如果是http显示为http(s)
This commit is contained in:
committed by
Jiangjie.Bai
parent
211933349e
commit
83a116c094
@@ -82,6 +82,12 @@ export default {
|
||||
if (obj['category'] && obj['type']) {
|
||||
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
|
||||
},
|
||||
defaultOptions: {}
|
||||
|
Reference in New Issue
Block a user