//需要引入的页面
<Modal
v-model="show"
title="测试管理"
width="600">
<department :id="id"> </department>
</Modal>
import department from '../department/index';
//在export default 加入一下
components: {
department,
},
//ruturn中
//携带的参数
id:null,
//是否显示页面
show:false
//引入的页面
//在export default 加入一下
props: {
//扩展数据
id:null
},
路由动态参数
localhost/order/10
{
path: 'order/:type',
name: `${pre}order`,
meta: {
...meta,
title: 'xx订单',
closable: false
},
component: () => import('@/pages/xxx/xxx')
},