feat(Settings): move user to profile page after data changed
This commit is contained in:
parent
a9f2d3c7c7
commit
132fdb44ad
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue