修复防盗链设置中域名无法修改的Bug

This commit is contained in:
GoEdgeLab
2023-02-01 18:16:41 +08:00
parent 455a02c0fd
commit 305983559a

View File

@@ -27,8 +27,16 @@ Vue.component("http-referers-config-box", {
return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn
},
changeAllowDomains: function (domains) {
if (typeof (domains) == "object") {
this.config.allowDomains = domains
this.$forceUpdate()
}
},
changeDenyDomains: function (domains) {
if (typeof (domains) == "object") {
this.config.denyDomains = domains
this.$forceUpdate()
}
}
},
template: `<div>