.umirc.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { defineConfig } from "umi";
  2. export default defineConfig({
  3. routes: [
  4. {
  5. path: "/",
  6. component: "index",
  7. name: "系统首页",
  8. wrappers: ["@/wrappers/auth"]
  9. },
  10. {
  11. path: "/login",
  12. component: "login",
  13. name: "登录",
  14. wrappers: ["@/wrappers/auth"]
  15. },
  16. {
  17. path: "/user",
  18. component: "user",
  19. name: "普通用户",
  20. wrappers: ["@/wrappers/auth"]
  21. },
  22. {
  23. path: "/admin",
  24. component: "admin",
  25. name: "管理用户",
  26. wrappers: ["@/wrappers/auth"]
  27. },
  28. {
  29. path: "/tea",
  30. component: "tea",
  31. name: "茶产品",
  32. wrappers: ["@/wrappers/auth"]
  33. },
  34. {
  35. path: "/fruit",
  36. component: "fruit",
  37. name: "水果茶产品",
  38. wrappers: ["@/wrappers/auth"]
  39. },
  40. {
  41. path: "/products",
  42. component: "products",
  43. name: "茶副产品",
  44. wrappers: ["@/wrappers/auth"]
  45. },
  46. { path: "/*", component: "404" },
  47. ],
  48. plugins: ["@umijs/plugins/dist/react-query"],
  49. reactQuery: {},
  50. npmClient: "npm",
  51. });