index.ts 321 B

1234567891011121314151617
  1. import request from '@/config/request';
  2. /** 获取登录 */
  3. export const loginApi = (data: any) => {
  4. return request.post({
  5. url: '/doLogin',
  6. data,
  7. });
  8. };
  9. /**查询用户是否存在 */
  10. export const getUsers = (data) => {
  11. return request.post({
  12. url: '/getUser',
  13. data,
  14. });
  15. }