mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			392 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.deleteServer = function (serverId) {
 | 
						|
		teaweb.confirm("html:确定要删除当前网站吗?<br/>请慎重操作,删除后无法恢复!", function () {
 | 
						|
			this.$post("$")
 | 
						|
				.params({
 | 
						|
					"serverId": serverId
 | 
						|
				})
 | 
						|
				.success(function () {
 | 
						|
					teaweb.success("删除成功", function () {
 | 
						|
						window.location = "/servers"
 | 
						|
					})
 | 
						|
				})
 | 
						|
		})
 | 
						|
	}
 | 
						|
}) |