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
30
31
32
| import Vue from 'vue'
| import VueRouter from 'vue-router'
| import Home from "../views/home/index.vue";
| import AudioAnalysis from "../views/home/components/audioAnalysis/index.vue";
| import TextManager from "../views/home/components/textManager/index.vue";
| Vue.use(VueRouter);
| const routes = [
| {
| path:"/",
| redirect:"/home/audioAnalysis"
| },
| {
| path:"/home",
| component:Home,
| children:[
| {
| path:"audioAnalysis",
| component:AudioAnalysis
| },
| {
| path:"textManager",
| component:TextManager
| }
| ]
| }
| ];
| const mode = process.env.NODE_ENV==='testing'||'production'?'hash':'history';
| const router = new VueRouter({
| mode,
| routes
| });
| export default router
|
|