Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 8129a36

Browse files
committed
router
1 parent 6015639 commit 8129a36

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

fltb/src/main.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { createApp } from 'vue'
22
import Particles from "vue3-particles";
33
import App from './App.vue'
4-
4+
import router from './router';
55
import 'bootstrap/dist/css/bootstrap-grid.min.css'
66
import 'animate.css';
77

8-
createApp(App).use(Particles).mount('#app')
8+
createApp(App)
9+
.use(router)
10+
.use(Particles)
11+
.mount('#app');

fltb/src/router/index.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { createRouter, createWebHistory } from 'vue-router'
2+
3+
const router = createRouter({
4+
history: createWebHistory(import.meta.env.BASE_URL),
5+
routes: [
6+
{
7+
path: '/',
8+
name: 'home',
9+
component: () => import('../views/DataTable.vue')
10+
}
11+
]
12+
})
13+
14+
export default router

0 commit comments

Comments
 (0)