-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (26 loc) · 959 Bytes
/
index.js
File metadata and controls
29 lines (26 loc) · 959 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import {createRouter, createWebHistory} from 'vue-router';
import Home from '@/views/Home.vue';
import Video from '@/views/Video.vue';
import Video2 from '@/views/Video2.vue';
import Live from '@/views/Live.vue';
import Settings from '@/views/Settings.vue';
import Collection from '@/views/Collection.vue';
import History from '@/views/History.vue';
import Reader from '@/views/Reader.vue';
import Parser from '@/views/Parser.vue';
const routes = [
{path: '/', component: Home},
{path: '/video', component: Video},
{path: '/video2', component: Video2},
{path: '/live', component: Live},
{path: '/settings', component: Settings},
{path: '/collection', component: Collection},
{path: '/history', component: History},
{path: '/reader', component: Reader},
{path: '/parser', component: Parser},
];
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes,
});
export default router;