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

This commit is contained in:
刘祥超
2023-02-01 18:16:41 +08:00
parent 129db6cf4e
commit 3c0a97c3cc

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>