user.js 504 B

12345678910111213141516
  1. import { http } from '@/service/request.js'
  2. import { getBase64 } from '@/utils/crypto'
  3. //模拟PC端的账号密码登录先调试,仅前期调试使用,该接口后期会弃用
  4. export const pcLogin = () =>
  5. http.post(
  6. '/api/admin/common/login',
  7. { loginName: 'liuyang', password: getBase64('123456'), type: 'ACCOUNT' },
  8. {
  9. custom: { noAuth: true }
  10. }
  11. )
  12. /**
  13. * 微信小程序模拟登录
  14. */
  15. export const wxMiniAppLogin = (params) => http.post(`/user/wxMiniAppLogin`, params)