feat(Settings): move user to profile page after data changed

This commit is contained in:
Sándor Levcsák 2020-12-27 16:58:34 +02:00
parent a9f2d3c7c7
commit 132fdb44ad
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ export default defineComponent({
const filteredForm = Object.entries(form).reduce((a, [k, v]) => (v === null ? a : { ...a, [k]: v }), {})
const userData = await putProfile(filteredForm)
updateUser(userData)
await routerPush('profile', { username: userData.username })
}
const onLogout = async () => {