2022年5月29日从svn移到git

This commit is contained in:
daihh
2022-05-29 18:56:34 +08:00
commit b050613020
488 changed files with 68444 additions and 0 deletions

32
src/api/account.js Normal file
View File

@@ -0,0 +1,32 @@
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
}