优化交互

This commit is contained in:
GoEdgeLab
2021-06-28 21:09:22 +08:00
parent d6aa97e085
commit d03bdfe203
6 changed files with 26 additions and 11 deletions

View File

@@ -20,7 +20,10 @@ func (this *AddPortPopupAction) Init() {
func (this *AddPortPopupAction) RunGet(params struct {
ServerType string
Protocol string
From string
}) {
this.Data["from"] = params.From
protocols := serverconfigs.AllServerProtocolsForType(params.ServerType)
if len(params.Protocol) > 0 {
result := []maps.Map{}