反向代理源站可以设置权重

This commit is contained in:
GoEdgeLab
2020-11-17 17:11:45 +08:00
parent 8e0a8d45ec
commit b9edc0ce8a
6 changed files with 36 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ Vue.component("origin-list-box", {
methods: {
createPrimaryOrigin: function () {
teaweb.popup("/servers/server/settings/origins/addPopup?originType=primary&" + this.vParams, {
height: "22em",
callback: function (resp) {
window.location.reload()
}
@@ -16,6 +17,7 @@ Vue.component("origin-list-box", {
},
createBackupOrigin: function () {
teaweb.popup("/servers/server/settings/origins/addPopup?originType=backup&" + this.vParams, {
height: "22em",
callback: function (resp) {
window.location.reload()
}
@@ -23,6 +25,7 @@ Vue.component("origin-list-box", {
},
updateOrigin: function (originId, originType) {
teaweb.popup("/servers/server/settings/origins/updatePopup?originType=" + originType + "&" + this.vParams + "&originId=" + originId, {
height: "22em",
callback: function (resp) {
window.location.reload()
}