版权声明:一个被隔壁肥宅嘲笑的... https://blog.csdn.net/weixin_38641550/article/details/82118151
今天遇到了一个bug 域名重定向
这么写好使
{
path: '/dashboard',
meta: {
title: '登录',
ignoreAuth: true
},
component: () => import('@/views/dashboard/index')
},
{
path: '/',
redirect: '/dashboard'
},
这么写不好使
{
path: '/',
redirect: '/dashboard',
children: [{
path: 'dashboard',
component: () => import('@/views/dashboard/index')
}]
},
我觉得这个逼问题是router-view 这个标签 我现在没法写这个标签