api.js 281 B

12345
  1. // post请求
  2. export const weixinLogin = (params, config = {}) => uni.$u.http.post('/ai-auth/wechat/login', params, config)
  3. // get请求,注意:get请求的配置等,都在第二个参数中
  4. export const getUserInfo = (data) => uni.$u.http.get('/system/user/getInfo', data)