Files
vue-flow/examples/router.ts
T
2021-07-15 23:33:17 +02:00

26 lines
502 B
TypeScript

import { createRouter, createWebHashHistory } from 'vue-router';
export const routes = [
{
path: '/basic',
component: () => import('./Basic')
},
{
path: '/custom-connectionline',
component: () => import('./CustomConnectionLine')
},
{
path: '/custom-node',
component: () => import('./CustomNode')
},
{
path: '/drag-n-drop',
component: () => import('./DragNDrop')
}
];
export const router = createRouter({
history: createWebHashHistory(),
routes
});