|
@@ -16,8 +16,7 @@ const whiteList = [
|
|
|
'Add VGM',
|
|
'Add VGM',
|
|
|
'Public Tracking Detail',
|
|
'Public Tracking Detail',
|
|
|
'Create New Rule',
|
|
'Create New Rule',
|
|
|
- 'System Message Detail',
|
|
|
|
|
- 'Destination Delivery',
|
|
|
|
|
|
|
+ 'System Message Detail'
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
export const useBreadCrumb = defineStore('breadCrumb', {
|
|
export const useBreadCrumb = defineStore('breadCrumb', {
|
|
@@ -28,7 +27,6 @@ export const useBreadCrumb = defineStore('breadCrumb', {
|
|
|
actions: {
|
|
actions: {
|
|
|
setRouteList(toRoute: any) {
|
|
setRouteList(toRoute: any) {
|
|
|
const index = this.routeList.findIndex((item) => item.label === toRoute.name)
|
|
const index = this.routeList.findIndex((item) => item.label === toRoute.name)
|
|
|
- console.log(toRoute.name)
|
|
|
|
|
if (index !== -1) {
|
|
if (index !== -1) {
|
|
|
this.routeList.splice(index + 1)
|
|
this.routeList.splice(index + 1)
|
|
|
} else if (toRoute.name === 'Public Tracking Detail') {
|
|
} else if (toRoute.name === 'Public Tracking Detail') {
|
|
@@ -70,19 +68,6 @@ export const useBreadCrumb = defineStore('breadCrumb', {
|
|
|
query: toRoute.query
|
|
query: toRoute.query
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
- } else if (toRoute.name === 'Destination Delivery') {
|
|
|
|
|
- this.routeList = [
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Destination Delivery',
|
|
|
|
|
- path: '/booking',
|
|
|
|
|
- query: ''
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: 'Configurations',
|
|
|
|
|
- path: '/Booking/DestinationDelivery',
|
|
|
|
|
- query: toRoute.query
|
|
|
|
|
- }
|
|
|
|
|
- ]
|
|
|
|
|
} else if (toRoute.name && whiteList.includes(toRoute.name)) {
|
|
} else if (toRoute.name && whiteList.includes(toRoute.name)) {
|
|
|
this.routeList.push({
|
|
this.routeList.push({
|
|
|
label: toRoute?.meta?.breadName || toRoute.name,
|
|
label: toRoute?.meta?.breadName || toRoute.name,
|