charles
2024-04-29 61ee015a91fdf32e271c2c86c7257fb3776d8c69
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
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 router = new VueRouter({
  mode: 'hash',
  routes
});
export default router