File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,9 @@ export default {
22
22
methods: {
23
23
getBreadcrumb () {
24
24
let matched = this .$route .matched .filter (item => item .name )
25
- if (matched .length === 0 ) {
26
- this .levelList = [{ path: ' /' , meta: { title: ' 首页' }}]
27
- return
28
- }
29
25
const first = matched[0 ]
30
26
if (first && first .name !== ' dashboard' ) {
31
- matched = [{ path: ' /' , meta: { title: ' dashboard' }}].concat (matched)
27
+ matched = [{ path: ' /dashboard ' , meta: { title: ' dashboard' }}].concat (matched)
32
28
}
33
29
this .levelList = matched
34
30
},
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ export const asyncRouterMap = [
87
87
{
88
88
path : '/components' ,
89
89
component : Layout ,
90
+ redirect : 'noredirect' ,
90
91
name : 'component-demo' ,
91
92
meta : {
92
93
title : 'components' ,
@@ -110,7 +111,7 @@ export const asyncRouterMap = [
110
111
{
111
112
path : '/charts' ,
112
113
component : Layout ,
113
- redirect : '/charts/index ' ,
114
+ redirect : 'noredirect ' ,
114
115
name : 'charts' ,
115
116
meta : {
116
117
title : 'charts' ,
@@ -126,7 +127,7 @@ export const asyncRouterMap = [
126
127
{
127
128
path : '/example' ,
128
129
component : Layout ,
129
- redirect : 'noredirect ' ,
130
+ redirect : '/example/table/complex-table ' ,
130
131
name : 'example' ,
131
132
meta : {
132
133
title : 'example' ,
@@ -136,7 +137,7 @@ export const asyncRouterMap = [
136
137
{
137
138
path : '/example/table' ,
138
139
component : _import ( 'example/table/index' ) ,
139
- redirect : '/example/table/table' ,
140
+ redirect : '/example/table/complex- table' ,
140
141
name : 'Table' ,
141
142
meta : {
142
143
title : 'Table' ,
@@ -193,7 +194,7 @@ export const asyncRouterMap = [
193
194
{
194
195
path : '/excel' ,
195
196
component : Layout ,
196
- redirect : '/excel/download ' ,
197
+ redirect : '/excel/export-excel ' ,
197
198
name : 'excel' ,
198
199
meta : {
199
200
title : 'excel' ,
You can’t perform that action at this time.
0 commit comments