Implement basic routing

This commit is contained in:
2022-01-18 13:29:51 +00:00
parent 2112192670
commit d0e52ddfa6
8 changed files with 67 additions and 17 deletions

15
web/src/router/index.js Normal file
View File

@ -0,0 +1,15 @@
import { createRouter, createWebHashHistory } from 'vue-router'
import HelloWorld from '../components/HelloWorld.vue';
import Dashboard from '../pages/Dashboard.vue';
const routes = [
{ path: '/', name: 'Index', component: Dashboard },
{ path: '/uiae', name: 'Home', component: HelloWorld },
]
const router = createRouter({
history: createWebHashHistory(),
routes,
})
export default router