mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			486 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			486 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						||
	this.createProvider = function () {
 | 
						||
		teaweb.popup(Tea.url(".createPopup"), {
 | 
						||
			height: "28em",
 | 
						||
			callback: function () {
 | 
						||
				teaweb.success("保存成功", function () {
 | 
						||
					teaweb.reload()
 | 
						||
				})
 | 
						||
			}
 | 
						||
		})
 | 
						||
	}
 | 
						||
 | 
						||
	this.deleteProvider = function (providerId) {
 | 
						||
		let that = this
 | 
						||
		teaweb.confirm("确定要删除这个DNS服务商账号吗?", function () {
 | 
						||
			that.$post(".delete")
 | 
						||
				.params({
 | 
						||
					providerId: providerId
 | 
						||
				})
 | 
						||
				.refresh()
 | 
						||
		})
 | 
						||
	}
 | 
						||
}) |