修改更新逻辑
This commit is contained in:
		
							parent
							
								
									1e1459803a
								
							
						
					
					
						commit
						76116f7289
					
				|  | @ -80,8 +80,12 @@ | ||||||
|         var data = eval("(" + e.data + ")");  |         var data = eval("(" + e.data + ")");  | ||||||
|         console.log(data); |         console.log(data); | ||||||
|           //处理订阅信息 |           //处理订阅信息 | ||||||
|         this.contentList.push(data.content); |         if(data.content.length >0){ | ||||||
|         this.percent = data.currProgress |           this.contentList.push(data.content); | ||||||
|  |         } | ||||||
|  |         if(data.currProgress != null){ | ||||||
|  |           this.contentList.push(data.content); | ||||||
|  |         } | ||||||
|       }, |       }, | ||||||
|       websocketclose: function (e) { |       websocketclose: function (e) { | ||||||
|         console.log("connection closed (" + e + ")"); |         console.log("connection closed (" + e + ")"); | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 RenCheng
						RenCheng