.umirc.ts 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. import { defineConfig } from '@umijs/max';
  2. export default defineConfig({
  3. antd: {},
  4. access: {},
  5. model: {},
  6. initialState: {},
  7. request: {
  8. // dataField: ''
  9. },
  10. layout: {
  11. title: '商户后台嘻嘻',
  12. logo: "",
  13. },
  14. routes: [
  15. {
  16. path: '/',
  17. redirect: '/home',
  18. },
  19. {
  20. name: "登录",
  21. path: "/login",
  22. component: "./Login",
  23. layout: false
  24. },
  25. {
  26. name: '首页',
  27. path: '/home',
  28. component: './Home',
  29. icon: 'HomeOutlined',
  30. },
  31. {
  32. name: '权限演示',
  33. path: '/access',
  34. component: './Access',
  35. },
  36. {
  37. name: ' CRUD 示例',
  38. path: '/table',
  39. component: './Table',
  40. },
  41. {
  42. name: "产品列表",
  43. path: '/product',
  44. component: './ProductList'
  45. },
  46. {
  47. name: "子账号管理",
  48. path: '/child_account',
  49. component: './ChildAccount',
  50. icon: "TeamOutlined"
  51. }
  52. ],
  53. npmClient: 'pnpm',
  54. });