File tree Expand file tree Collapse file tree 4 files changed +9
-11
lines changed
Expand file tree Collapse file tree 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,5 @@ import App from './App.vue'
55import router from './router'
66
77const app = createApp ( App )
8-
98app . use ( router )
10-
119app . mount ( '#app' )
Original file line number Diff line number Diff line change 1- import { createRouter , createWebHashHistory } from 'vue-router'
2- import HomeView from '../views/HomeView.vue'
1+ import { createWebHashHistory , createRouter } from 'vue-router'
2+ import HomeView from '@/views/HomeView.vue'
3+ import ProjetView from '@/views/ProjectView.vue'
4+ import NotFoundView from '@/views/NotFoundView.vue'
35
46const router = createRouter ( {
57 history : createWebHashHistory ( import . meta. env . BASE_URL ) ,
@@ -12,15 +14,12 @@ const router = createRouter({
1214 {
1315 path : '/projets' ,
1416 name : 'projets' ,
15- // route level code-splitting
16- // this generates a separate chunk (Project.[hash].js) for this route
17- // which is lazy-loaded when the route is visited.
18- component : ( ) => import ( '../views/ProjectView.vue' ) ,
17+ component : ProjetView ,
1918 } ,
2019 {
2120 path : '/:catchAll(.*)' ,
2221 name : 'NotFound' ,
23- component : ( ) => import ( '../views/ NotFoundView.vue' ) ,
22+ component : NotFoundView ,
2423 }
2524 ] ,
2625} )
Original file line number Diff line number Diff line change @@ -44,10 +44,10 @@ const projets = [
4444 newTab: true
4545 },
4646 {
47- url: " . /maquette-omnifood" ,
47+ url: " https://raphbag.github.io /maquette-omnifood" ,
4848 label: " Site" ,
4949 icon: " https://github.com/raphbag/maquette-omnifood/raw/master/assets/images/icon.png" ,
50- newTab: false
50+ newTab: true
5151 }
5252 ],
5353 type: " ESME"
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import vueDevTools from 'vite-plugin-vue-devtools'
66
77// https://vite.dev/config/
88export default defineConfig ( {
9+ base : '/' ,
910 plugins : [ vue ( ) , vueDevTools ( ) ] ,
1011 resolve : {
1112 alias : {
You can’t perform that action at this time.
0 commit comments