refactor(settings): push route object instead of raw string
Modified the useSettingsPage composable to use a route object instead of a raw string in goToSettingsPage and moved settings route child routes into the settings route itself using 'rest(.*)*'.
This commit is contained in:
2 files changed
+8
-9
No files matched your search
+1
-7
@@ -40,15 +40,9 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/settings',
|
||||
path: '/settings/:rest(.*)*',
|
||||
name: 'settings',
|
||||
component: SettingsView,
|
||||
children: [
|
||||
{
|
||||
path: ':rest(.*)',
|
||||
component: SettingsView
|
||||
}
|
||||
],
|
||||
meta: {
|
||||
title: () => i18n.global.t('preferences.settings')
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user