mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			502 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			502 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						||
	this.upload = function () {
 | 
						||
		teaweb.popup("/servers/components/ip-library/uploadPopup", {
 | 
						||
			callback: function () {
 | 
						||
				teaweb.success("上传成功", function () {
 | 
						||
					teaweb.reload()
 | 
						||
				})
 | 
						||
			}
 | 
						||
		})
 | 
						||
	}
 | 
						||
 | 
						||
	this.deleteLibrary = function (libraryId) {
 | 
						||
		let that = this
 | 
						||
		teaweb.confirm("确定要删除此IP库吗?", function () {
 | 
						||
			that.$post(".delete")
 | 
						||
				.params({
 | 
						||
					"libraryId": libraryId
 | 
						||
				})
 | 
						||
				.success(function () {
 | 
						||
					teaweb.reload()
 | 
						||
				})
 | 
						||
		})
 | 
						||
	}
 | 
						||
}) |