优化文字提示

This commit is contained in:
GoEdgeLab
2022-03-14 16:24:09 +08:00
parent da5fbcca49
commit 9e3e330f04
2 changed files with 32 additions and 11 deletions

View File

@@ -5855,6 +5855,8 @@ Vue.component("http-firewall-actions-box", {
<option value="service">当前服务</option> <option value="service">当前服务</option>
<option value="global">所有服务</option> <option value="global">所有服务</option>
</select> </select>
<p class="comment" v-if="blockScope == 'service'">只封锁用户对当前网站服务的访问,其他服务不受影响。</p>
<p class="comment" v-if="blockScope =='global'">封锁用户对所有网站服务的访问。</p>
</td> </td>
</tr> </tr>
@@ -7704,7 +7706,8 @@ Vue.component("reverse-proxy-box", {
readTimeout: {count: 0, unit: "second"}, readTimeout: {count: 0, unit: "second"},
idleTimeout: {count: 0, unit: "second"}, idleTimeout: {count: 0, unit: "second"},
maxConns: 0, maxConns: 0,
maxIdleConns: 0 maxIdleConns: 0,
followRedirects: false
} }
} }
if (reverseProxyConfig.addHeaders == null) { if (reverseProxyConfig.addHeaders == null) {
@@ -7864,6 +7867,13 @@ Vue.component("reverse-proxy-box", {
</tbody> </tbody>
<more-options-tbody @change="changeAdvancedVisible" v-if="isOn()"></more-options-tbody> <more-options-tbody @change="changeAdvancedVisible" v-if="isOn()"></more-options-tbody>
<tbody v-show="isOn() && advancedVisible"> <tbody v-show="isOn() && advancedVisible">
<tr v-show="family == null || family == 'http'">
<td>回源跟随</td>
<td>
<checkbox v-model="reverseProxyConfig.followRedirects"></checkbox>
<p class="comment">选中后,自动读取源站跳转后的网页内容。</p>
</td>
</tr>
<tr v-show="family == null || family == 'http'"> <tr v-show="family == null || family == 'http'">
<td>自动添加的Header</td> <td>自动添加的Header</td>
<td> <td>
@@ -12180,6 +12190,15 @@ Vue.component("checkbox", {
methods: { methods: {
change: function () { change: function () {
this.$emit("input", this.newValue) this.$emit("input", this.newValue)
},
check: function () {
this.newValue = this.elementValue
},
uncheck: function () {
this.newValue = ""
},
isChecked: function () {
return this.newValue == this.elementValue
} }
}, },
watch: { watch: {

View File

@@ -599,6 +599,8 @@ Vue.component("http-firewall-actions-box", {
<option value="service">当前服务</option> <option value="service">当前服务</option>
<option value="global">所有服务</option> <option value="global">所有服务</option>
</select> </select>
<p class="comment" v-if="blockScope == 'service'">只封锁用户对当前网站服务的访问,其他服务不受影响。</p>
<p class="comment" v-if="blockScope =='global'">封锁用户对所有网站服务的访问。</p>
</td> </td>
</tr> </tr>