反向代理源站实现使用域名分组

This commit is contained in:
GoEdgeLab
2021-09-20 11:54:28 +08:00
parent 2f1e5bad43
commit 9f855e4477
8 changed files with 189 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ Vue.component("origin-list-box", {
methods: {
createPrimaryOrigin: function () {
teaweb.popup("/servers/server/settings/origins/addPopup?originType=primary&" + this.vParams, {
height: "24em",
height: "27em",
callback: function (resp) {
teaweb.success("保存成功", function () {
window.location.reload()
@@ -19,7 +19,7 @@ Vue.component("origin-list-box", {
},
createBackupOrigin: function () {
teaweb.popup("/servers/server/settings/origins/addPopup?originType=backup&" + this.vParams, {
height: "24em",
height: "27em",
callback: function (resp) {
teaweb.success("保存成功", function () {
window.location.reload()
@@ -29,7 +29,7 @@ Vue.component("origin-list-box", {
},
updateOrigin: function (originId, originType) {
teaweb.popup("/servers/server/settings/origins/updatePopup?originType=" + originType + "&" + this.vParams + "&originId=" + originId, {
height: "24em",
height: "27em",
callback: function (resp) {
teaweb.success("保存成功", function () {
window.location.reload()
@@ -89,6 +89,9 @@ Vue.component("origin-list-table", {
<div v-if="origin.name.length > 0" style="margin-top: 0.5em">
<tiny-basic-label>{{origin.name}}</tiny-basic-label>
</div>
<div v-if="origin.domains != null && origin.domains.length > 0">
<grey-label v-for="domain in origin.domains">{{domain}}</grey-label>
</div>
</td>
<td :class="{disabled:!origin.isOn}">{{origin.weight}}</td>
<td>