后台管理 登陆权限问题解决
This commit is contained in:
17
frontend/src/api/user.js
Normal file
17
frontend/src/api/user.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import send_request from '../utils/send_request';
|
||||
|
||||
/**
|
||||
* 用户登录
|
||||
* @returns
|
||||
*/
|
||||
export function userLogin({ username, password }) {
|
||||
return send_request({
|
||||
url: '/user/login',
|
||||
method: 'POST',
|
||||
useQS: true,
|
||||
params: {
|
||||
"username": username,
|
||||
"password": password,
|
||||
}
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user