mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			599 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			599 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Vue.component("http-firewall-block-options-viewer", {
 | 
						|
	props: ["v-block-options"],
 | 
						|
	data: function () {
 | 
						|
		return {
 | 
						|
			options: this.vBlockOptions
 | 
						|
		}
 | 
						|
	},
 | 
						|
	template: `<div>
 | 
						|
	<span v-if="options == null">默认设置</span>
 | 
						|
	<div v-else>
 | 
						|
		状态码:{{options.statusCode}} / 提示内容:<span v-if="options.body != null && options.body.length > 0">[{{options.body.length}}字符]</span><span v-else class="disabled">[无]</span>  / 超时时间:{{options.timeout}}秒 <span v-if="options.timeoutMax > options.timeout">/ 最大封禁时长:{{options.timeoutMax}}秒</span>
 | 
						|
	</div>
 | 
						|
</div>	
 | 
						|
`
 | 
						|
}) |