u
This commit is contained in:
		
							parent
							
								
									941001c098
								
							
						
					
					
						commit
						7668573fb0
					
				
							
								
								
									
										9
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								index.js
									
									
									
									
									
								
							@ -85,14 +85,11 @@ module.exports = {
 | 
				
			|||||||
      hostname = this.SERVER_HOSTNAME,
 | 
					      hostname = this.SERVER_HOSTNAME,
 | 
				
			||||||
      protocol = 'https:'
 | 
					      protocol = 'https:'
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      // #ifdef H5
 | 
					 | 
				
			||||||
      hostname = window.location.hostname
 | 
					 | 
				
			||||||
      protocol = 'http:'
 | 
					 | 
				
			||||||
      // #endif
 | 
					 | 
				
			||||||
      // #ifndef H5
 | 
					 | 
				
			||||||
      hostname = this.SERVER_HOSTNAME4DEV // 在本机的手机模拟器里可以,在虚拟机的浏览器里也可以,但是运行到连接的iPhone里就无法连接,不知为何
 | 
					      hostname = this.SERVER_HOSTNAME4DEV // 在本机的手机模拟器里可以,在虚拟机的浏览器里也可以,但是运行到连接的iPhone里就无法连接,不知为何
 | 
				
			||||||
      protocol = 'http:'
 | 
					        // #ifdef H5
 | 
				
			||||||
 | 
					        || window.location.hostname
 | 
				
			||||||
        // #endif
 | 
					        // #endif
 | 
				
			||||||
 | 
					      protocol = 'http:'
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return `${protocol}//${hostname}:${port}/${route}`
 | 
					    return `${protocol}//${hostname}:${port}/${route}`
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user