import VueRouter from 'vue-router'
import Home from '../pages/Home'
import PubTable1 from '../pages/PubTable1'
import PubTable2 from '../pages/PubTable2'
const router = new VueRouter({
routes:[
{
path: '/',
redirect: 'home'
},
{
name:'home',
path:'/home',
component:Home,
children: [
{
name:'pubtable1',
path: 'pubtable1',
component: PubTable1
},
{
name:'pubtable2',
path: 'pubtable2',
component: PubTable2
}
]
},
]
})
export default router;
- 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
- 33
- 34
- 35
- 36