mirror of
https://github.com/1024-lab/smart-admin.git
synced 2026-06-08 23:06:09 +00:00
v2.0代码提交
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import { postAxios, getAxios } from '@/lib/http';
|
||||
|
||||
export const login = ({ userName, password }) => {
|
||||
const data = {
|
||||
userName,
|
||||
password
|
||||
};
|
||||
return postAxios('login', data);
|
||||
};
|
||||
|
||||
export const getUserInfo = (token) => {
|
||||
let params = {
|
||||
token
|
||||
};
|
||||
return getAxios('get_info', params);
|
||||
};
|
||||
|
||||
export const logout = (token) => {
|
||||
return postAxios('logout', {});
|
||||
};
|
||||
Reference in New Issue
Block a user