Open Broad-CanDou opened 1 year ago
侧边栏路由中,例如以下: 这个路由不带redirect 重定向 { path: '/error-log', component: Layout, children: [ { path: 'log', component: () => import('@/views/error-log/index'), name: 'ErrorLog', meta: { title: 'Error Log', icon: 'bug' } } ] }, ==============================而下面这个路由 却带了重定向。 这个不带和带有什么区别吗? 请问 { path: '/pdf', component: Layout, redirect: '/pdf/index', children: [ { path: 'index', component: () => import('@/views/pdf/index'), name: 'PDF', meta: { title: 'PDF', icon: 'pdf' } } ] },
带了重定向点击面包屑会跳转的,我记得好像是这样
侧边栏路由中,例如以下: 这个路由不带redirect 重定向 { path: '/error-log', component: Layout, children: [ { path: 'log', component: () => import('@/views/error-log/index'), name: 'ErrorLog', meta: { title: 'Error Log', icon: 'bug' } } ] }, ==============================而下面这个路由 却带了重定向。 这个不带和带有什么区别吗? 请问 { path: '/pdf', component: Layout, redirect: '/pdf/index', children: [ { path: 'index', component: () => import('@/views/pdf/index'), name: 'PDF', meta: { title: 'PDF', icon: 'pdf' } } ] },