mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-13 04:46:47 +08:00
25 lines
437 B
JavaScript
25 lines
437 B
JavaScript
/**控制台相关的控制数据*/
|
|
import ajax from '@/api/boe/boeApiAjax.js'
|
|
|
|
/**
|
|
* 退出登录
|
|
*/
|
|
const logout = function() {
|
|
return ajax.postJson('/b1/system/user/logout',{from:'wechat'});
|
|
}
|
|
|
|
/**修改密码
|
|
* oldPassword:'',
|
|
* newPassword:'',
|
|
* confirmPassword:''
|
|
*/
|
|
const modifyPassword = function(data) {
|
|
return ajax.postJson('/b1/system/user/update-password',data);
|
|
}
|
|
|
|
|
|
export default {
|
|
logout,
|
|
modifyPassword
|
|
}
|