提交 4faeb060 编写于 作者: yi.li's avatar yi.li

路由配置1

上级 7774284b
......@@ -7,7 +7,9 @@ const patientsList = r => require.ensure([], () => r(require('../views/patients/
const newManage = r => require.ensure([], () => r(require('../views/patients/new-manage/layout.vue')), 'newManage');
const newPatient = r => require.ensure([], () => r(require('../views/patients/new-manage/new-patient.vue')), 'newPatient');
/*分组管理*/
const labelsManage = r => require.ensure([], () => r(require('../views/patients/labels-manage/layout.vue')), 'labelsManage');
const labelsList = r => require.ensure([], () => r(require('../views/patients/labels-manage/labels-manage.vue')), 'labelsList');
const patientsRouters = {
path: '/patients-manage',
......@@ -55,7 +57,26 @@ const patientsRouters = {
title: '新增居民',
},
},
{
path: 'labels-manage',
component: labelsManage,
name: 'labelsManage',
redirect: 'labels-manage/labels-manage',
children: [
{
path: 'labels-manage',
component: labelsList,
name: 'labelsList',
meta: {
title: '分组管理',
keepAlive: false
},
},
],
meta: {
title: '分组管理',
},
},
],
};
......
......@@ -83,6 +83,11 @@ export default {
title: '新增居民',
icon: 'el-icon-setting',
index: 'patients-manage/new-manage/new-patient'
},
{
title: '分组管理',
icon: 'el-icon-setting',
index: 'patients-manage/labels-manage/labels-manage'
}
]
}
......
<template>
<p>分组管理</p>
</template>
<script>
</script>
<style scoped>
</style>
<template>
<router-view></router-view>
</template>
<script>
export default {
name: "layout"
}
</script>
<style scoped>
</style>
<template>
<p>你好laldl</p>
<p>居民管理</p>
</template>
<script>
......
<template>
<p>新增居民</p>
</template>
<script>
</script>
<style scoped>
</style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册