gaoluyang
6 天以前 58d7f40b836e74822a06144145022298f58e85f2
src/utils/request.ts
@@ -22,12 +22,12 @@
    config.url = url
  }
  // 记录请求参数
  // console.log('请求发送参数:', {
  //   url: (config.baseUrl || baseUrl) + config.url,
  //   method: config.method || 'GET',
  //   headers: config.header,
  //   data: config.data
  // })
  console.log('请求发送参数:', {
    url: (config.baseUrl || baseUrl) + config.url,
    method: config.method || 'GET',
    headers: config.header,
    data: config.data
  })
  return new Promise((resolve, reject) => {
    uni.request({
      method: config.method || 'GET',