mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.deleteCluster = function (clusterId) {
 | 
						|
		let that = this
 | 
						|
		teaweb.confirm("确定要删除此集群吗?", function () {
 | 
						|
			that.$post("/clusters/cluster/delete")
 | 
						|
				.params({
 | 
						|
					clusterId: clusterId
 | 
						|
				})
 | 
						|
				.success(function () {
 | 
						|
					window.location = "/clusters"
 | 
						|
				})
 | 
						|
		})
 | 
						|
	}
 | 
						|
}) |