feat(router): Add dynamic routing

This commit is contained in:
陈凯龙
2022-01-11 10:47:10 +08:00
parent 95a2bd884d
commit b218ccc9cc
15 changed files with 478 additions and 323 deletions

View File

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