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

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

@@ -8,7 +8,6 @@ Vue.component("http-firewall-rule-label", {
},
methods: {
showErr: function (err) {
teaweb.popupTip("规则校验错误,请修正:<span class=\"red\">" + teaweb.encodeHTML(err) + "</span>")
},
@@ -24,7 +23,8 @@ Vue.component("http-firewall-rule-label", {
<!-- 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>