28 lines
740 B
TypeScript
28 lines
740 B
TypeScript
|
|
import type { RouteRecordRaw } from 'vue-router';
|
||
|
|
|
||
|
|
export const NO_LOGIN_ROUTES: string[] = ['/home/example/public'];
|
||
|
|
|
||
|
|
export const ROUTE: RouteRecordRaw[] = [
|
||
|
|
{
|
||
|
|
name: 'ExampleAddonRoot',
|
||
|
|
path: '/home/example',
|
||
|
|
meta: { title: '示例插件', app: 'home' },
|
||
|
|
component: () => import('#/layouts/app/home.vue'),
|
||
|
|
children: [
|
||
|
|
{
|
||
|
|
name: 'ExampleAddonPublic',
|
||
|
|
path: 'public',
|
||
|
|
meta: { title: '公开页面' },
|
||
|
|
component: () => import('../views/public.vue'),
|
||
|
|
},
|
||
|
|
{
|
||
|
|
name: 'ExampleAddonDashboard',
|
||
|
|
path: 'dashboard',
|
||
|
|
meta: { title: '插件仪表盘' },
|
||
|
|
component: () => import('../views/dashboard.vue'),
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
];
|
||
|
|
|
||
|
|
export default ROUTE;
|