u
This commit is contained in:
		
							parent
							
								
									46dce4a28e
								
							
						
					
					
						commit
						3193632ea7
					
				@ -206,9 +206,11 @@ export default {
 | 
				
			|||||||
          apiWhat[key] = JSON.stringify(apiWhat[key])
 | 
					          apiWhat[key] = JSON.stringify(apiWhat[key])
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					      const url = this.makeServerUrl(`${apiVersion}/${apiWho}/${apiTodo}`)
 | 
				
			||||||
 | 
					      process.env.NODE_ENV === 'development' && console.log('%c '+JSON.stringify({url}), 'color:blue')
 | 
				
			||||||
      let [error, { statusCode, header, errMsg, data: resultServer = {} } = {}] = await uni.request({
 | 
					      let [error, { statusCode, header, errMsg, data: resultServer = {} } = {}] = await uni.request({
 | 
				
			||||||
        method: httpMethod,
 | 
					        method: httpMethod,
 | 
				
			||||||
        url: this.makeServerUrl(`${apiVersion}/${apiWho}/${apiTodo}`),
 | 
					        url: url,
 | 
				
			||||||
        header: { _passtoken: uni.getStorageSync('_passtoken') },
 | 
					        header: { _passtoken: uni.getStorageSync('_passtoken') },
 | 
				
			||||||
        data: apiWhat,
 | 
					        data: apiWhat,
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user