mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
29 lines
590 B
JavaScript
29 lines
590 B
JavaScript
/**控制台相关的控制数据*/
|
||
import ajax from '@/api/boe/boeApiAjax.js'
|
||
|
||
/**
|
||
* 退出登录
|
||
*/
|
||
const logout = function() {
|
||
return ajax.postJson('/b1/system/user/logout',{from:'wechat'});
|
||
}
|
||
|
||
/**修改密码,不再使用,已转化为userbasic接口
|
||
* oldPassword:'',
|
||
* newPassword:'',
|
||
* confirmPassword:''
|
||
*/
|
||
const modifyPassword = function(data) {
|
||
return ajax.postJson('/b1/system/user/update-password',data);
|
||
}
|
||
|
||
const getRsaPublicKey=function(){
|
||
return ajax.get('/b1/common/secret/rsa-public-key');
|
||
}
|
||
|
||
export default {
|
||
logout,
|
||
modifyPassword,
|
||
getRsaPublicKey
|
||
}
|