vue路由跳转路径是'/config',但手动刷新后会变成'/config/'
path: '/adnormal',
component: Layout,
children: [{
path: '',
name: 'Adnormal',
component: () => import('@/views/adnormal/index'),
meta: { title: '异常事件', icon: 'adnormal', key: 'list3EventInfo' }
}]
path: '/config',
component: Layout,
children: [{
path: '',
name: 'Config',
component: () => import('@/views/config/index'),
meta: { title: '系统配置', icon: 'config', key: 'getSmsConfig' }
}]
以上两个路由是一样的写法,但上面'/adnormal'就没有这个问题,再怎么刷新都不会变。
求大神解答下~
是不是/config这个路由做了预渲染了?