mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-13 14:13:47 +08:00
v2.0 代码提交
This commit is contained in:
20
smart_admin_v1/smart-admin-web/src/api/user.js
Normal file
20
smart_admin_v1/smart-admin-web/src/api/user.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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