mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 05:00:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			287 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			287 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
Tea.context(function () {
 | 
						|
	this.$delay(function () {
 | 
						|
		this.loadStatus(this.node.id)
 | 
						|
	})
 | 
						|
 | 
						|
	this.status = null
 | 
						|
	this.loadStatus = function (nodeId) {
 | 
						|
		this.$post(".status")
 | 
						|
			.params({
 | 
						|
				nodeId: nodeId
 | 
						|
			})
 | 
						|
			.success(function (resp) {
 | 
						|
				this.status = resp.data.status
 | 
						|
			})
 | 
						|
	}
 | 
						|
}) |