use explicit nested routes for settings and wallet CMS tabs.

This commit is contained in:
2026-09-06 16:08:02 +02:00
parent 82932ce7c8
commit 564b016f47
3 changed files with 22 additions and 5 deletions
+18 -3
View File
@@ -57,9 +57,10 @@ const router = createRouter({
path: '/settings',
component: () => import('../views/CmsSettingsLayout.vue'),
meta: { requiresAuth: true, title: 'CMS - Settings', activeMenu: '/settings' },
redirect: { name: ROUTE_NAMES.ShopSettings },
children: [
{
path: '',
path: 'shop',
name: ROUTE_NAMES.ShopSettings,
component: () => import('../views/CmsShopSettingsView.vue'),
meta: { requiresAuth: true, title: 'CMS - Shop settings', activeMenu: '/settings' }
@@ -74,9 +75,23 @@ const router = createRouter({
},
{
path: '/wallet',
name: ROUTE_NAMES.Wallet,
component: () => import('../views/CmsWalletView.vue'),
meta: { requiresAuth: true, title: 'CMS - Wallet' }
meta: { requiresAuth: true, title: 'CMS - Wallet', activeMenu: '/wallet' },
redirect: { name: ROUTE_NAMES.MoneroWallet },
children: [
{
path: 'monero',
name: ROUTE_NAMES.MoneroWallet,
component: () => import('../components/wallet/MoneroWallet.vue'),
meta: { requiresAuth: true, title: 'CMS - Monero wallet', activeMenu: '/wallet' }
},
{
path: 'bitcoin',
name: ROUTE_NAMES.BitcoinWallet,
component: () => import('../components/wallet/BitcoinWallet.vue'),
meta: { requiresAuth: true, title: 'CMS - Bitcoin wallet', activeMenu: '/wallet' }
}
]
},
{
path: '/:pathMatch(.*)*',