feat(useTitle): Add useTitle
feat(useNProgress): Add useNProgress
This commit is contained in:
8
src/api/login/index.ts
Normal file
8
src/api/login/index.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
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 })
|
||||
}
|
||||
4
src/api/login/types.ts
Normal file
4
src/api/login/types.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export type UserLoginType = {
|
||||
username: string
|
||||
password: string
|
||||
}
|
||||
Reference in New Issue
Block a user