| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- // +---------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +---------------------------------------------------------------------
- // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
- // +---------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +---------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +---------------------------------------------------------------------
- import BasicLayout from '@/components/main';
- import setting from '@/setting'
- let roterPre = setting.roterPre;
- // export default {
- // path: '/',
- // name: 'home',
- // redirect: '/admin/home',
- // component: BasicLayout,
- // meta: {
- // hideInMenu: true,
- // notCache: true,
- // auth: true
- // },
- // children: [
- // {
- // path: 'admin/home',
- // name: 'home',
- // meta: {
- // title: '首页',
- // auth: ['admin-index-index']
- // },
- // component: () => import('@/pages/index/index')
- // }
- // ]
- // }
- const meta = {
- auth: true,
- };
- const pre = 'home_';
- export default {
- path: roterPre + '/',
- name: 'home',
- header: 'home',
- redirect: {
- name: `${pre}index`,
- },
- meta,
- component: BasicLayout,
- children: [
- {
- path: roterPre+'/home/',
- name: `${pre}index`,
- header: 'home',
- meta: {
- auth: ['admin-index-index'],
- title: '主页',
- affix: true,
- },
- component: () => import('@/pages/index/index'),
- },
- ],
- };
|