2022年5月29日 从svn移到git

This commit is contained in:
daihh
2022-05-29 18:59:24 +08:00
parent 9580ff8c9b
commit faa7afb65f
897 changed files with 171836 additions and 0 deletions

31
api/account.js Normal file
View 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
}