优化交互

This commit is contained in:
刘祥超
2021-06-28 21:09:22 +08:00
parent a4edae6692
commit 81a3b299f0
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{}