chore: use route redirect
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
ce0122ba81
commit
105254a6f4
|
@ -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',
|
||||
|
|
|
@ -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']),
|
||||
|
|
Reference in New Issue
Block a user