Skip to content

Commit fa48749

Browse files
committed
Fix on refresh
1 parent c56e6e2 commit fa48749

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ui/src/components/widgets/Breadcrumb.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

ui/src/config/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)