刚接触Vue2,一直不知道母版页是怎么设置的。
鼓捣了半天,原来只用在路由的地方,写嵌套路由就行了
如下:
{
path: "/systemSetting",
name: "SystemSetting",
component: () => import('../views/SystemSetting/index'),
redirect: '/systemSetting/taskSetting',
children: [
{
path: "/systemSetting/taskSetting",
name: "TaskSetting",
component: () => import('../views/SystemSetting/TaskSetting/index'),
},
{
path: "/systemSetting/emailSetting",
name: "EmailSetting",
component: () => import('../views/SystemSetting/EmailSetting/index'),
}
]
},
这样可以在基于systemSetting页面,写内容
ps:发泄不爽情绪随便写的