use explicit nested routes for settings and wallet CMS tabs.
This commit is contained in:
+18
-3
@@ -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(.*)*',
|
||||
|
||||
Reference in New Issue
Block a user