File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export default {
100100 this .breadList = []
101101 this .$route .matched .forEach ((item , idx ) => {
102102 const parent = this .$route .matched [idx - 1 ]
103- if (item && parent && parent .name !== ' index' && ! item .path .endsWith (' :id' )) {
103+ if (item && parent && parent .name !== ' index' && ! item .path .endsWith (' :id' ) && ! item . path . endsWith ( ' :id(.*) ' ) ) {
104104 this .breadList .pop ()
105105 }
106106 this .breadList .push (item)
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ function generateRouterMap (section) {
9090 hideChildrenInMenu : true ,
9191 children : [
9292 {
93- path : '/' + child . name + '/:id' ,
93+ path : '/' + child . name + '/:id(.*) ' ,
9494 hidden : child . hidden ,
9595 meta : {
9696 title : child . title ,
@@ -145,7 +145,7 @@ function generateRouterMap (section) {
145145 map . meta . tabs = section . tabs
146146
147147 map . children = [ {
148- path : '/' + section . name + '/:id' ,
148+ path : '/' + section . name + '/:id(.*) ' ,
149149 actions : section . actions ? section . actions : [ ] ,
150150 meta : {
151151 title : section . title ,
You can’t perform that action at this time.
0 commit comments