You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
296 B
TypeScript

import { useAxios } from '@/hooks/web/useAxios'
import type { UserLoginType } from './types'
const { request } = useAxios()
export const loginApi = (data: UserLoginType) => {
return request({ url: '/user/login', method: 'post', data } as AxiosConfig<
Recordable,
UserLoginType
>)
}