mirror of
				https://github.com/TeaOSLab/EdgeAdmin.git
				synced 2025-11-04 13:10:26 +08:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			321 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| 
								 | 
							
								Tea.context(function () {
							 | 
						||
| 
								 | 
							
									let allServerNames = this.serverNames.$copy();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									this.keyword = ""
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
									this.$delay(function () {
							 | 
						||
| 
								 | 
							
										let that = this
							 | 
						||
| 
								 | 
							
										this.$watch("keyword", function (keyword) {
							 | 
						||
| 
								 | 
							
											that.serverNames = allServerNames.$findAll(function (k, serverName) {
							 | 
						||
| 
								 | 
							
												return teaweb.match(serverName, keyword)
							 | 
						||
| 
								 | 
							
											})
							 | 
						||
| 
								 | 
							
										})
							 | 
						||
| 
								 | 
							
									})
							 | 
						||
| 
								 | 
							
								})
							 |