
import BasicLayout from '@/layouts/basic-layout';
import Setting from '@/setting';

const pre = 'setting_';

export default {
    path: `${Setting.roterPre}/setting/`,
    name: 'setting',
    header: 'setting',
    meta: {
        // 授权标识
        auth: ['supplier-setting']
    },
    redirect: {
        name: `${pre}merchant`
    },
    component: BasicLayout,
    children: [
        {
            path: 'merchant',
            name: `${pre}merchant`,
            meta: {
                auth: ['supplier-setting-merchant'],
                title: '商户设置'
            },
            component: () => import('@/pages/setting/merchant/index')
        },
        {
            path: 'managers',
            name: `${pre}managers`,
            meta: {
                auth: ['supplier-setting-managers'],
                title: '管理员列表'
            },
            component: () => import('@/pages/setting/managers/index')
        },
        {
            path: 'ticket',
            name: `${pre}ticket`,
            meta: {
                auth: ['supplier-setting-ticket'],
                title: '小票打印'
            },
			props: {
			    typeMole: 'third'
			},
            component: () => import('@/components/fromSubmit/commonForm.vue')
        }
    ]
};
