2024-04-06 13:25:13 +08:00
|
|
|
// Hooks
|
|
|
|
import { mapsBeforeEnter, externalMapsBeforeEnter } from 'new-dashboard/router/hooks/check-navigation';
|
|
|
|
|
|
|
|
// Lazy Pages
|
|
|
|
const Maps = () => import('new-dashboard/pages/Maps/Maps');
|
|
|
|
const Carto = () => import('new-dashboard/pages/Maps/Carto');
|
|
|
|
const External = () => import('new-dashboard/pages/Maps/External');
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '/maps/:filter?',
|
|
|
|
component: Maps,
|
|
|
|
meta: {
|
2024-04-09 20:18:49 +08:00
|
|
|
title: () => '地图 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'maps',
|
|
|
|
component: Carto,
|
|
|
|
meta: {
|
2024-04-09 20:18:49 +08:00
|
|
|
title: () => '地图 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
beforeEnter: mapsBeforeEnter
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'external',
|
|
|
|
name: 'external',
|
|
|
|
component: External,
|
|
|
|
meta: {
|
2024-04-09 20:18:49 +08:00
|
|
|
title: () => 'gl地图 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
beforeEnter: externalMapsBeforeEnter
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/maps/external/:filter',
|
|
|
|
component: Maps,
|
|
|
|
meta: {
|
2024-04-09 20:18:49 +08:00
|
|
|
title: () => 'gl地图 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'external_filtered',
|
|
|
|
component: External,
|
|
|
|
meta: {
|
2024-04-09 20:18:49 +08:00
|
|
|
title: () => 'gl地图 | 快点'
|
2024-04-06 13:25:13 +08:00
|
|
|
},
|
|
|
|
beforeEnter: externalMapsBeforeEnter
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
export default routes;
|