mirror of https://github.com/longtai-cn/hippo4j
parent
08ff4cad22
commit
b91e3a7490
@ -1,8 +0,0 @@
|
||||
import { lazy } from 'react';
|
||||
import { IRouterList } from '@/typings';
|
||||
|
||||
const Login = lazy(() => import('./index'));
|
||||
|
||||
const routerList: IRouterList[] = [{ path: '/login', component: () => <Login /> }];
|
||||
|
||||
export default routerList;
|
@ -1,23 +0,0 @@
|
||||
import request from '@/utils';
|
||||
|
||||
const getLogin = async (formData: { username: string; password: string | number; rememberMe: number }) => {
|
||||
return await request('/auth/login', {
|
||||
method: 'GET',
|
||||
params: {
|
||||
...formData,
|
||||
},
|
||||
}).catch(err => {
|
||||
console.log('登陆出错:', err);
|
||||
});
|
||||
};
|
||||
|
||||
// export function getInfo() {
|
||||
// return request('get', '/hippo4j/v1/cs/user/info');
|
||||
// }
|
||||
|
||||
// export function logout() {
|
||||
// return request('post', '/hippo4j/v1/cs/user/logout');
|
||||
// }
|
||||
// eslint-disable-next-line import/no-anonymous-default-export
|
||||
|
||||
export { getLogin };
|
Loading…
Reference in new issue