Vue.component("http-referers-config-box", { props: ["v-referers-config", "v-is-location", "v-is-group"], data: function () { let config = this.vReferersConfig if (config == null) { config = { isPrior: false, isOn: false, allowEmpty: true, allowSameDomain: true, allowDomains: [], denyDomains: [] } } if (config.allowDomains == null) { config.allowDomains = [] } if (config.denyDomains == null) { config.denyDomains = [] } return { config: config } }, methods: { isOn: function () { return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn }, changeAllowDomains: function (domains) { }, changeDenyDomains: function (domains) { } }, template: `
| 启用防盗链 | 
				 选中后表示开启防盗链。  | 
		
| 允许直接访问网站 | 
				 允许用户直接访问网站,用户第一次访问网站时来源域名通常为空。  | 
		
| 来源域名允许一致 | 
				 允许来源域名和当前访问的域名一致,相当于在站内访问。  | 
		
| 允许的来源域名 | 
				 允许的其他来源域名列表,比如  | 
		
| 禁止的来源域名 | 
				 禁止的来源域名列表,比如  |