mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
2022年5月29日 从svn移到git
This commit is contained in:
31
api/account.js
Normal file
31
api/account.js
Normal file
@@ -0,0 +1,31 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
|
||||
/**
|
||||
* 更新头像
|
||||
* @param {
|
||||
* id:'',
|
||||
* avatar:''
|
||||
* } data
|
||||
* @returns
|
||||
*/
|
||||
const updateAvatar = function(data) {
|
||||
return ajax.post('/xboe/account/update-avatar',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新密码
|
||||
* @param {
|
||||
* id:'',
|
||||
* oldPass:'',// 旧密码
|
||||
* newPass:'' // 新密码
|
||||
* } data
|
||||
* @returns
|
||||
*/
|
||||
const updatePass = function(data) {
|
||||
return ajax.post('/xboe/account/update-pass',data);
|
||||
}
|
||||
|
||||
export default{
|
||||
updateAvatar,
|
||||
updatePass
|
||||
}
|
||||
Reference in New Issue
Block a user