mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
阶段性提交
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
Tea.context(function () {
|
||||
this.serverType = "httpProxy";
|
||||
this.tlsProtocolName = ""
|
||||
|
||||
this.serverNames = [];
|
||||
this.origins = [];
|
||||
|
||||
|
||||
this.success = NotifySuccess("保存成功", "/servers");
|
||||
|
||||
this.changeServerType = function () {
|
||||
@@ -13,22 +10,9 @@ Tea.context(function () {
|
||||
this.tlsProtocolName = "";
|
||||
};
|
||||
|
||||
this.addServerName = function () {
|
||||
teaweb.popup("/servers/addServerNamePopup", {
|
||||
callback: function (resp) {
|
||||
var serverName = resp.data.serverName;
|
||||
this.serverNames.push(serverName);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
this.removeServerName = function (index) {
|
||||
this.serverNames.$remove(index);
|
||||
};
|
||||
|
||||
this.addOrigin = function () {
|
||||
teaweb.popup("/servers/addOriginPopup?serverType=" + this.serverType, {
|
||||
callback: function (resp){
|
||||
callback: function (resp) {
|
||||
this.origins.push(resp.data.origin);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user