You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
820 B
28 lines
820 B
import './assets/main.css'
|
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
|
|
//importer bootstrap
|
|
import * as bootstrap from 'bootstrap'
|
|
import './scss/styles.scss'
|
|
|
|
//importer les components pour le routing
|
|
import PagePrincipale from "./components/PagePrincipale.vue"
|
|
import NotFound from "./components/erreurs/NotFound.vue"
|
|
import TestParametreURL from "./components/TestParametreURL.vue"
|
|
|
|
const routes = [
|
|
{ path: '/', component: PagePrincipale },
|
|
{ path: '/exemple/:id', component: TestParametreURL },
|
|
{ path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound },
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes, // short for `routes: routes`
|
|
})
|
|
|
|
createApp(App).use(router).mount('#app')
|