Ant design vue configuration menu opens externally

The implementation is as follows

menu configuration

insert image description here
Front-end project address: http://localhost:3000
Menu path: dataCenter/HealthData
Open method:外部

src-->config-->router.config.jsfile in the project

Configure the address of the menu that needs to be opened externally as follows

Menu address: /dataCenter/HealthDataDemo

router.config.js放到这个文件的最下面

{
    
    
    path: '/dataCenter/HealthDataDemo',
    component: () => import('@/views/dataCenter/HealthDataDemo')
}

Guess you like

Origin blog.csdn.net/xiaohua616/article/details/131422655