import { Layout } from '@/routers/constant';

const settingRouter = {
    sort: 8,
    path: '/settings',
    component: Layout,
    redirect: '/setting',
    meta: {
        title: 'menu.settings',
        icon: 'p-config',
    },
    children: [
        {
            path: '/setting',
            name: 'Setting',
            component: () => import('@/views/setting/index.vue'),
            meta: {
                requiresAuth: true,
                key: 'Setting',
            },
        },
        {
            path: '/expired',
            name: 'Expired',
            hidden: true,
            component: () => import('@/views/setting/expired.vue'),
            meta: {
                requiresAuth: true,
                key: 'Expired',
            },
        },
    ],
};

export default settingRouter;
