From 9e486b15fe0d811caf5c0f97a60762a71382fa2a Mon Sep 17 00:00:00 2001 From: Liam Cabra Teixeira Date: Thu, 17 Sep 2020 21:01:27 -0300 Subject: [PATCH] fix on register --- src/store/modules/RegisterVuex.js | 6 + src/views/public/Register.vue | 182 +++++++++++++++++------------- 2 files changed, 112 insertions(+), 76 deletions(-) diff --git a/src/store/modules/RegisterVuex.js b/src/store/modules/RegisterVuex.js index c491c96..cd6e0ec 100644 --- a/src/store/modules/RegisterVuex.js +++ b/src/store/modules/RegisterVuex.js @@ -26,6 +26,12 @@ export default { return user + }, + + async updateAvatar(context, newAvatar){ + const retorno = await axios.post(process.env.VUE_APP_UPLOAD_URL+'/upload/image', newAvatar); + + return retorno.data; } diff --git a/src/views/public/Register.vue b/src/views/public/Register.vue index 4137b8f..a240ba4 100644 --- a/src/views/public/Register.vue +++ b/src/views/public/Register.vue @@ -1,37 +1,74 @@