login.ts 446 B

1234567891011121314151617181920212223
  1. import { httpApp } from "@/plugins/axiosApp";
  2. /** 用户登录 */
  3. export async function loginApi(
  4. accountType: string,
  5. accountValue: string,
  6. password: string,
  7. domain: string,
  8. rootOrgId: number
  9. ) {
  10. return httpApp.post<{ content: any }>(
  11. "/api/ecs_core/verifyCode/gt/login",
  12. {
  13. accountType,
  14. accountValue,
  15. password,
  16. domain,
  17. rootOrgId,
  18. alwaysOK: true,
  19. },
  20. { setGlobalMask: true }
  21. );
  22. }