17 lines
469 B
TypeScript
17 lines
469 B
TypeScript
|
|
import { createApp } from 'vue'
|
||
|
|
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
|
import './style.css'
|
||
|
|
import App from './App.vue'
|
||
|
|
import Dashboard from './views/Dashboard.vue'
|
||
|
|
import ProjectView from './views/ProjectView.vue'
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHistory(),
|
||
|
|
routes: [
|
||
|
|
{ path: '/', component: Dashboard },
|
||
|
|
{ path: '/project/:id', component: ProjectView, props: true },
|
||
|
|
],
|
||
|
|
})
|
||
|
|
|
||
|
|
createApp(App).use(router).mount('#app')
|