chore: use route redirect
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
kolaente 2021-11-14 21:55:12 +01:00
parent ce0122ba81
commit 105254a6f4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 1 additions and 4 deletions

View File

@ -125,6 +125,7 @@ const router = createRouter({
path: '/user/settings',
name: 'user.settings',
component: UserSettingsComponent,
redirect: {name: 'user.settings.general'},
children: [
{
path: '/user/settings/avatar',

View File

@ -64,10 +64,6 @@ export default {
name: 'Settings',
mounted() {
this.setTitle(this.$t('user.settings.title'))
if(this.$route.name === 'user.settings') {
this.$router.replace({name: 'user.settings.general'})
}
},
computed: {
...mapState('config', ['totpEnabled', 'caldavEnabled']),