common.js 913 Bytes
/* Layout */
import Layout from '@/layout';
import Emptylayout from '@/layout/emptyLayout';
import IframeLayout from '@/layout/iframeLayout';

const commonRoutes = [
    {
        path: '/dashboard',
        component: Layout,
        children: [
            {
                path: 'index',
                component: () => import('@/views/dashboard/index.vue'),
                meta: {
                    title: '首页',
                    noCache: true
                }
            }
        ]
    },
    {
        path: '/iframe',
        component: Layout,
        children: [
            {
                path: 'index',
                component: IframeLayout,
                meta: {
                    title: 'iframe'
                }
            }
        ],
        hidden: true
    },
    {
        path: '*',
        redirect: '/404',
        hidden: true
    }
];
export default commonRoutes;