When setting up menu routing, the code is as follows:
{ path: '/materieluse', component: Layout, meta: { title: 'Warehouse Management', icon: 'component' }, children: [{ path: 'materielList', component: () => import('@/views/materieluse/materielList'), name: 'icons', meta: { title: 'Request for information management' } }, { path: 'itemDbList', component: () => import('@/views/materieluse/itemDbList'), name: 'icons', meta: { title: 'Project Warehouse' } }] },
The corresponding tag in the panel is invalid. After searching the information, I learned that: name: "router-name"; //Set the route name, be sure to fill in it, otherwise various problems will occur when using <keep-alive>. At the same time, noCache: true setting will also fail.
Therefore, the correct code is as follows:
{ path: '/materieluse', component: Layout, meta: { title: 'Warehouse Management', icon: 'component' }, children: [{ path: 'materielList', component: () => import('@/views/materieluse/materielList'), name: 'materielList', meta: { title: 'Request for information management' } }, { path: 'itemDbList', component: () => import('@/views/materieluse/itemDbList'), name: 'itemDbList', meta: { title: 'Project Warehouse' } }] },
The above solution to the failure of the vue-element-admin menu tag is all the content I share with you. I hope you can give you a reference and I hope you can support me more.