AmandaG hace 6 meses
padre
commit
e88ba5e0a2

+ 0 - 5
src/router/index.ts

@@ -142,11 +142,6 @@ const router = createRouter({
           meta: {
             activeMenu: '/SystemSettings'
           }
-        },
-        {
-          path: '/Booking/DestinationDelivery',
-          name: 'Destination Delivery',
-          component: () => import('../views/DesDelivery')
         }
       ]
     }

+ 1 - 16
src/stores/modules/breadCrumb.ts

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

+ 0 - 1
src/views/DesDelivery/index.ts

@@ -1 +0,0 @@
-export { default } from './src/DesDelivery.vue'

+ 0 - 3
src/views/DesDelivery/src/DesDelivery.vue

@@ -1,3 +0,0 @@
-<template>
-  <div>123</div>
-</template>

+ 2 - 53
src/views/Layout/src/components/Menu/MenuView.vue

@@ -10,58 +10,7 @@ const userStore = useUserStore()
 
 const isCollapse = defineModel<boolean>()
 
-const menuList = ref(
-  [
-    {
-      index: '1',
-      icon: 'icon_data_fill_b',
-      label: 'Dashboard',
-      path: '/dashboard'
-    },
-    {
-      index: '2',
-      icon: 'icon_booking__fill_b',
-      label: 'Booking',
-      type: "list",
-      children: [
-        {
-          index: '2-1',
-          label: 'Booking Management',
-          path: '/booking'
-        },
-        {
-          index: '2-2',
-          label: 'Destination Delivery',
-          path: '/Booking/DestinationDelivery'
-        },
-      ]
-    },
-    {
-      index: '3',
-      icon: 'icon_tracking__fill_b',
-      label: 'Tracking',
-      path: '/tracking'
-    },
-    {
-      index: '4',
-      icon: 'icon_system__management_fill_b',
-      label: 'System Management',
-      type: "list",
-      children: [
-        {
-          index: '4-1',
-          label: 'System Message',
-          path: '/system-message'
-        },
-        {
-          index: '4-2',
-          label: 'System Settings',
-          path: '/SystemSettings'
-        }
-      ]
-    }
-  ]
-)
+const menuList = ref()
 watch(
   () => userStore.userInfo?.uname,
   () => {
@@ -71,7 +20,7 @@ watch(
 const getMenuList = () => {
   $api.getMenuList().then((res) => {
     if (res.code === 200) {
-      // menuList.value = res.data
+      menuList.value = res.data
     }
   })
 }