Newer
Older
smartKitchenFront / src / router / modules / productManagement.js
Stephanie on 2 Nov 2022 2 KB FIX: 修改路由权限配置
/* Layout */
import Layout from '@/layout/Layout'
export const productManagemant = [
  {
    path: '/dashboard',
    component: Layout,
    redirect: 'dashboard',
    name: '/dashboard',
    meta: {
      title: '驾驶舱看板',
      icon: '驾驶舱看板', // 图标
      permission: '/dashboard'
    },
    children: [{
      path: 'dashboard',
      name: 'Dashboard',
      component: () => import('@/views/dashboard/index'), // 跳转的页面
      meta: { title: '驾驶舱看板', icon: '驾驶舱看板', noCache: true, permission: '/dashboard' }
    }]
  },
  {
    path: 'productManagemant',
    component: Layout,
    name: 'ProductManagemant',
    alwaysShow: true,
    meta: {
      title: '产品管理',
      icon: '产品管理', // 图标
      permission: '/product/main'
    },
    children: [
      {
        path: '/brand',
        name: 'Brand',
        component: () => import('@/views/product/brandList'), // 重定向的组件位置
        meta: { title: '品牌列表', icon: '', permission: '/product/brand' }
      },
      {
        path: '/category',
        name: 'Category',
        component: () => import('@/views/product/categoryList'), // 重定向的组件位置
        meta: { title: '品类列表', icon: '', permission: '/product/category' }
      }, {
        path: '/deviceList',
        name: 'DeviceList',
        component: () => import('@/views/product/deviceList'), // 重定向的组件位置
        meta: { title: '设备列表', icon: '', permission: '/product/device' }
      }, {
        path: '/productList',
        name: 'ProductList',
        component: () => import('@/views/product/productList'), // 重定向的组件位置
        meta: { title: '产品列表', icon: '', permission: '/product/product' }
      }, {
        path: '/sncoderuls',
        name: 'Sncoderuls',
        component: () => import('@/views/product/snCodeRuls'), // 重定向的组件位置
        meta: { title: '设备SN码规则列表', icon: '', permission: '/product/snrule' }
      }, {
        path: '/sncoderulsList',
        name: 'SncoderulsList',
        component: () => import('@/views/product/snCodeField'), // 重定向的组件位置
        meta: { title: '设备SN码列表', icon: '', permission: '/product/snlist' }
      }
    ]
  }]