crud.stub 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // +---------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +---------------------------------------------------------------------
  4. // | Copyright (c) 2016~{%YEAR%} https://www.crmeb.com All rights reserved.
  5. // +---------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +---------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +---------------------------------------------------------------------
  10. import LayoutMain from '@/layout';
  11. import setting from '@/setting'
  12. let routePre = setting.routePre
  13. const meta = {
  14. auth: true,
  15. }
  16. const pre = '{%NAME%}_'
  17. export default {
  18. path: `${routePre}`,
  19. name: 'crud_{%NAME%}',
  20. header: '{%NAME_HEADER%}',
  21. meta,
  22. component: LayoutMain,
  23. children: [
  24. {
  25. path: '{%ROUTE%}',
  26. name: `${pre}list`,
  27. meta: {
  28. auth: ['{%NAME%}-crud-list-index'],
  29. title: '{%MENUS%}',
  30. },
  31. component: () => import('@/pages/crud/{%PAGE_PATH%}/index'),
  32. },
  33. ],
  34. }