1.4.5.2
This commit is contained in:
27
EdgeUser/web/views/@default/lb/create.js
Normal file
27
EdgeUser/web/views/@default/lb/create.js
Normal file
@@ -0,0 +1,27 @@
|
||||
Tea.context(function () {
|
||||
this.serverType = this.serverTypes[0].code
|
||||
|
||||
this.enableTCP = false
|
||||
this.enableTLS = false
|
||||
this.enableUDP = false
|
||||
|
||||
this.family = ""
|
||||
|
||||
this.changeServerType = function () {
|
||||
switch (this.serverType) {
|
||||
case "tcpProxy":
|
||||
this.family = "tcp"
|
||||
break
|
||||
case "udpProxy":
|
||||
this.family = "udp"
|
||||
break
|
||||
}
|
||||
if (this.$refs != null) {
|
||||
this.$refs.originInputBox.changeFamily(this.family)
|
||||
}
|
||||
}
|
||||
|
||||
this.changeServerType()
|
||||
|
||||
this.success = NotifySuccess("保存成功", "/lb")
|
||||
})
|
||||
Reference in New Issue
Block a user