防盗链功能增加禁止的来源域名

This commit is contained in:
刘祥超
2022-10-24 10:20:44 +08:00
parent 4659c29358
commit 977b66ba4e
6 changed files with 42 additions and 8 deletions

View File

@@ -48,7 +48,8 @@ Vue.component("http-firewall-rules-box", {
<!-- refererBlock -->
<span v-if="rule.param == '\${refererBlock}'">
{{rule.checkpointOptions.allowDomains}}
<span v-if="rule.checkpointOptions.allowDomains != null && rule.checkpointOptions.allowDomains.length > 0">允许{{rule.checkpointOptions.allowDomains}}</span>
<span v-if="rule.checkpointOptions.denyDomains != null && rule.checkpointOptions.denyDomains.length > 0">禁止{{rule.checkpointOptions.denyDomains}}</span>
</span>
<span v-else>