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.
9 lines
242 B
TypeScript
9 lines
242 B
TypeScript
|
4 years ago
|
import { useAxios } from '@/hooks/web/useAxios'
|
||
|
4 years ago
|
import type { UserLoginType } from './types'
|
||
|
4 years ago
|
|
||
|
|
const { request } = useAxios()
|
||
|
|
|
||
|
4 years ago
|
export const loginApi = (data: UserLoginType) => {
|
||
|
4 years ago
|
return request({ url: '/user/login', method: 'post', data })
|
||
|
|
}
|