Files
Nexior/src/router/index.ts
T
2021-08-28 16:55:44 +08:00

19 lines
373 B
TypeScript

import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router';
import content from './content';
const routes = [
{
path: '/',
name: 'home',
component: () => import('@/pages/Home.vue')
},
content
];
const router = createRouter({
// history: createWebHistory(),
history: createWebHashHistory(),
routes
});
export default router;