mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 15:31:03 +00:00
57 lines
1.7 KiB
JavaScript
57 lines
1.7 KiB
JavaScript
// +---------------------------------------------------------------------
|
||
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
||
// +---------------------------------------------------------------------
|
||
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
|
||
// +---------------------------------------------------------------------
|
||
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
||
// +---------------------------------------------------------------------
|
||
// | Author: CRMEB Team <admin@crmeb.com>
|
||
// +---------------------------------------------------------------------
|
||
|
||
import LayoutMain from '@/layout';
|
||
import setting from '@/setting';
|
||
let routePre = setting.routePre;
|
||
|
||
const pre = 'cms_';
|
||
|
||
export default {
|
||
path: routePre + '/cms',
|
||
name: 'cms',
|
||
header: 'cms',
|
||
redirect: {
|
||
name: `${pre}article`,
|
||
},
|
||
component: LayoutMain,
|
||
children: [
|
||
{
|
||
path: 'article/index/:id?',
|
||
name: `${pre}article`,
|
||
meta: {
|
||
auth: ['cms-article-index'],
|
||
title: '文章管理',
|
||
keepAlive: true,
|
||
},
|
||
component: () => import('@/pages/cms/article/index'),
|
||
},
|
||
{
|
||
path: 'article_category/index',
|
||
name: `${pre}articleCategory`,
|
||
meta: {
|
||
auth: ['cms-article-category'],
|
||
title: '文章分类',
|
||
},
|
||
component: () => import('@/pages/cms/articleCategory/index'),
|
||
},
|
||
{
|
||
path: 'article/add_article/:id?',
|
||
name: `${pre}addArticle`,
|
||
meta: {
|
||
auth: ['cms-article-creat'],
|
||
title: '文章添加',
|
||
activeMenu: routePre + '/cms/article/index',
|
||
},
|
||
component: () => import('@/pages/cms/addArticle/index'),
|
||
},
|
||
],
|
||
};
|