|
@@ -16,7 +16,8 @@ const whiteList = [
|
|
|
'Add VGM',
|
|
'Add VGM',
|
|
|
'Public Tracking Detail',
|
|
'Public Tracking Detail',
|
|
|
'Create New Rule',
|
|
'Create New Rule',
|
|
|
- 'System Message Detail'
|
|
|
|
|
|
|
+ 'System Message Detail',
|
|
|
|
|
+ 'Destination Delivery',
|
|
|
]
|
|
]
|
|
|
|
|
|
|
|
export const useBreadCrumb = defineStore('breadCrumb', {
|
|
export const useBreadCrumb = defineStore('breadCrumb', {
|
|
@@ -27,6 +28,7 @@ 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') {
|
|
@@ -68,6 +70,19 @@ 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,
|