vue-router多级路由,在router-view中渲染组件问题

我想点击编辑按钮,在当前右侧区域加载一个新的vue组件,显示当前项目的详细内容。

图片描述
图片描述

求带神指点一下,如何才能实现这个功能

阅读 3.9k
2 个回答
{
    path: '/ProjectManagement',
    component: Container,
    children: [
        {
            path: '',
            component: projectPM,
            name: '项目管理',
        }, {
            path: '/proEdit',
            component: proEdit,
            name: 'edit'
        }
    ]
}

// Container
<template>
    <router-view />
</template>

同楼上的答案

推荐问题