show current profile in user profile page

This commit is contained in:
MaysWind
2020-10-29 01:32:54 +08:00
parent 5c0d169a26
commit be19089eab
4 changed files with 45 additions and 1 deletions
+3
View File
@@ -72,6 +72,9 @@ export default {
refreshToken: () => {
return axios.post('v1/tokens/refresh.json');
},
getProfile: () => {
return axios.get('v1/users/profile/get.json');
},
updateProfile: ({ email, nickname, password }) => {
return axios.post('v1/users/profile/update.json', {
email,