const ter = new Router({
routes: [
{
path: '/',
name: 'Login',
component: Login
},
{
path: '/index',
component:()=>import('@/components/index/index.vue'),
children:[
{
path: '/indexKG',
name: 'IndexKG',
component:()=>import('@/components/indexKG/indexKG.vue')
},
]
},
{
path: '/consumption',
name: 'Consumption',
component: consumption,
},
{
path: '/comprehensive',
name: 'Comprehensive',
component: comprehensive
},
{
path: '/fault',
name: 'Fault',
component: fault
},
{
path: '/workorder',
name: 'Workorder',
component: workorder
},
{
path: '/system',
name: 'System',
component: system
},
]
},
]
})
怎么让登录进去默认显示indexKG页面?
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
悬赏问题
- ¥15 jetson nano
- ¥15 :app:debugCompileClasspath'.
- ¥15 windows c++内嵌qt出现数据转换问题。
- ¥20 公众号如何实现点击超链接后自动发送文字
- ¥15 用php隐藏类名和增加类名
- ¥15 算法设计与分析课程的提问
- ¥15 用MATLAB汇总拟合图
- ¥15 智能除草机器人方案设计
- ¥15 对接wps协作接口实现消息发送
- ¥15 SQLite 出现“Database is locked” 如何解决?