mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	删除不需要的文件
This commit is contained in:
		@@ -1,37 +0,0 @@
 | 
			
		||||
Vue.component("http-request-scripts-config-box", {
 | 
			
		||||
	props: ["vRequestScriptsConfig", "v-is-location"],
 | 
			
		||||
	data: function () {
 | 
			
		||||
		let config = this.vRequestScriptsConfig
 | 
			
		||||
		if (config == null) {
 | 
			
		||||
			config = {}
 | 
			
		||||
		}
 | 
			
		||||
		return {
 | 
			
		||||
			config: config
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	methods: {
 | 
			
		||||
		changeInitGroup: function (group) {
 | 
			
		||||
			this.config.initGroup = group
 | 
			
		||||
			this.$forceUpdate()
 | 
			
		||||
		},
 | 
			
		||||
		changeRequestGroup: function (group) {
 | 
			
		||||
			this.config.requestGroup = group
 | 
			
		||||
			this.$forceUpdate()
 | 
			
		||||
		}
 | 
			
		||||
	},
 | 
			
		||||
	template: `<div>
 | 
			
		||||
	<input type="hidden" name="requestScriptsJSON" :value="JSON.stringify(config)"/>
 | 
			
		||||
	<div class="margin"></div>
 | 
			
		||||
	<h4 style="margin-bottom: 0">请求初始化</h4>
 | 
			
		||||
	<p class="comment">在请求刚初始化时调用,此时自定义Header等尚未生效。</p>
 | 
			
		||||
	<div>
 | 
			
		||||
		<script-group-config-box :v-group="config.initGroup" @change="changeInitGroup" :v-is-location="vIsLocation"></script-group-config-box>
 | 
			
		||||
	</div>
 | 
			
		||||
	<h4 style="margin-bottom: 0">准备发送请求</h4>
 | 
			
		||||
	<p class="comment">在准备执行请求或者转发请求之前调用,此时自定义Header、源站等已准备好。</p>
 | 
			
		||||
	<div>
 | 
			
		||||
		<script-group-config-box :v-group="config.requestGroup" @change="changeRequestGroup" :v-is-location="vIsLocation"></script-group-config-box>
 | 
			
		||||
	</div>
 | 
			
		||||
	<div class="margin"></div>
 | 
			
		||||
</div>`
 | 
			
		||||
})
 | 
			
		||||
		Reference in New Issue
	
	Block a user