remaining.ts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { $t } from "@/plugins/i18n";
  2. const Layout = () => import("@/layout/index.vue");
  3. export default [
  4. {
  5. path: "/login",
  6. name: "Login",
  7. component: () => import("@/views/login/index.vue"),
  8. meta: {
  9. title: $t("menus.pureLogin"),
  10. showLink: false,
  11. rank: 101
  12. }
  13. },
  14. {
  15. path: "/redirect",
  16. component: Layout,
  17. meta: {
  18. title: $t("status.pureLoad"),
  19. showLink: false,
  20. rank: 102
  21. },
  22. children: [
  23. {
  24. path: "/redirect/:path(.*)",
  25. name: "Redirect",
  26. component: () => import("@/layout/redirect.vue")
  27. }
  28. ]
  29. },
  30. // 下面是一个无layout菜单的例子(一个全屏空白页面),因为这种情况极少发生,所以只需要在前端配置即可(配置路径:src/router/modules/remaining.ts)
  31. {
  32. path: "/empty",
  33. name: "Empty",
  34. component: () => import("@/views/empty/index.vue"),
  35. meta: {
  36. title: $t("menus.pureEmpty"),
  37. showLink: false,
  38. rank: 103
  39. }
  40. },
  41. {
  42. path: "/account-settings",
  43. name: "AccountSettings",
  44. component: () => import("@/views/account-settings/index.vue"),
  45. meta: {
  46. title: $t("buttons.pureAccountSettings"),
  47. showLink: false,
  48. rank: 104
  49. }
  50. }
  51. ] satisfies Array<RouteConfigsTable>;