Blame view
src/router/modules/order.js
696 Bytes
5cb375940 auto commit the c... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/** When your routing table is too long, you can split it into small modules**/ import Layout from '@/layout' const orderRouter = { path: '/orders', component: Layout, redirect: '/order/page', alwaysShow: true, // will always show the root menu name: 'Order', meta: { title: 'orders', icon: 'shopping', roles: ['admin', 'assistant', 'runner', 'shoper'] // you can set roles in root nav }, children: [{ |
b58b17e1e auto commit the c... |
17 |
path: 'orderpage', |
5cb375940 auto commit the c... |
18 |
component: () => import('@/views/order/list'), |
b58b17e1e auto commit the c... |
19 |
name: 'list', |
5cb375940 auto commit the c... |
20 |
meta: { |
b58b17e1e auto commit the c... |
21 |
title: 'orders', |
5cb375940 auto commit the c... |
22 23 24 25 26 27 |
roles: ['admin', 'assistant', 'runner', 'shoper'] // or you can only set roles in sub nav } }] } export default orderRouter |