mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-05 14:20:25 +08:00
实现基础的DDoS防护
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
Vue.component("prior-checkbox", {
|
||||
props: ["v-config"],
|
||||
props: ["v-config", "description"],
|
||||
data: function () {
|
||||
let description = this.description
|
||||
if (description == null) {
|
||||
description = "打开后可以覆盖父级或子级配置"
|
||||
}
|
||||
return {
|
||||
isPrior: this.vConfig.isPrior
|
||||
isPrior: this.vConfig.isPrior,
|
||||
realDescription: description
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
@@ -18,7 +23,7 @@ Vue.component("prior-checkbox", {
|
||||
<input type="checkbox" v-model="isPrior"/>
|
||||
<label class="red"></label>
|
||||
</div>
|
||||
<p class="comment"><strong v-if="isPrior">[已打开]</strong> 打开后可以覆盖父级或子级配置。</p>
|
||||
<p class="comment"><strong v-if="isPrior">[已打开]</strong> {{realDescription}}。</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>`
|
||||
|
||||
Reference in New Issue
Block a user