index.js 1.05 KB
const allot = r => require.ensure([], () => r(require('./allot')), 'trade.allot');
const done = r => require.ensure([], () => r(require('./views/done')), 'trade.allot');
const undone = r => require.ensure([], () => r(require('./views/undone')), 'trade.allot');
const express = r => require.ensure([], () => r(require('./views/express')), 'trade.allot');

export default {
    path: '/allot',
    name: 'allot',
    component: allot,
    children: [
        {
            path: 'done.html',
            name: 'done',
            component: done,
            meta: {
                pageName: '发货已完成'
            }
        },
        {
            path: 'undone.html',
            name: 'undone',
            component: undone,
            meta: {
                pageName: '发货未完成'
            }
        },
        {
            path: 'express.html',
            name: 'express',
            component: express,
            meta: {
                pageName: '发货物流表'
            }
        }
    ],
    meta: {
        pageName: '调拨发货'
    }
};