Implement basic routing
This commit is contained in:
15
web/src/router/index.js
Normal file
15
web/src/router/index.js
Normal 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
|
Reference in New Issue
Block a user