照着官方文档配完发现怎么弄还是空白
{
path: '/address',
component: () => import('@/views/address/address.vue'),
name: 'Address',
children: [
{
path: 'edit',
component: () => import('@/views/address/edit.vue')
}
],
meta: {
isHideTabbar: true
}
},
const onAdd = () => {
router.push({path: '/address/edit', query: {
type: 'add'
}})
}
排查发现是父路由组件需要添加router-view
<template>
<div>
<router-view />
</div>
</template>