mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-20 16:26:36 +08:00
阶段性提交
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
Vue.component("network-addresses-box", {
|
||||
props: ["vServerType", "vAddresses"],
|
||||
props: ["v-server-type", "v-addresses", "v-protocol"],
|
||||
data: function () {
|
||||
let addresses = this.vAddresses
|
||||
if (addresses == null) {
|
||||
addresses = []
|
||||
}
|
||||
let protocol = this.vProtocol
|
||||
if (protocol == null) {
|
||||
protocol = ""
|
||||
}
|
||||
return {
|
||||
addresses: addresses
|
||||
addresses: addresses,
|
||||
protocol: protocol
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -17,7 +22,7 @@ Vue.component("network-addresses-box", {
|
||||
methods: {
|
||||
addAddr: function () {
|
||||
let that = this
|
||||
teaweb.popup("/servers/addPortPopup?serverType=" + this.vServerType, {
|
||||
teaweb.popup("/servers/addPortPopup?serverType=" + this.vServerType + "&protocol=" + this.protocol, {
|
||||
callback: function (resp) {
|
||||
var addr = resp.data.address;
|
||||
that.addresses.push(addr);
|
||||
|
||||
Reference in New Issue
Block a user