support update user profile

This commit is contained in:
MaysWind
2020-10-28 00:58:54 +08:00
parent b853a21de8
commit 3d2cc7ff95
7 changed files with 176 additions and 1 deletions
+7
View File
@@ -72,4 +72,11 @@ export default {
refreshToken: () => {
return axios.post('v1/tokens/refresh.json');
},
updateProfile: ({ email, nickname, password }) => {
return axios.post('v1/users/profile/update.json', {
email,
nickname,
password
});
},
};