mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 12:26:48 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
44
api/login.js
Normal file
44
api/login.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 账号的登录,退出
|
||||
*/
|
||||
|
||||
//用户的账号登录
|
||||
const login=function(loginName, password, code, key) {
|
||||
const data = {
|
||||
loginName,
|
||||
password,
|
||||
code,
|
||||
key
|
||||
}
|
||||
return ajax.post('/xboe/account/mobile-login',data);
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
const logout =function() {
|
||||
return ajax.get('/xboe/account/logout');
|
||||
}
|
||||
|
||||
// 验证码
|
||||
const captcha =function() {
|
||||
return ajax.get('/xboe/account/captcha');
|
||||
}
|
||||
|
||||
// 刷新token
|
||||
const refreshToken = function(token){
|
||||
return ajax.post('/xboe/account/refreshtoken',{token:token});
|
||||
}
|
||||
|
||||
// boe登录
|
||||
const boeLogin = function(token){
|
||||
return ajax.post('/xboe/account/boelogin',{token:token});
|
||||
}
|
||||
|
||||
export default{
|
||||
login,
|
||||
logout,
|
||||
captcha,
|
||||
refreshToken,
|
||||
boeLogin
|
||||
}
|
||||
Reference in New Issue
Block a user