editor.ts 556 B

12345678910111213141516171819202122232425262728
  1. import { $t } from "/@/plugins/i18n";
  2. const Layout = () => import("/@/layout/index.vue");
  3. const editorRouter = {
  4. path: "/editor",
  5. component: Layout,
  6. redirect: "/editor/index",
  7. meta: {
  8. icon: "edit",
  9. title: $t("menus.hseditor"),
  10. i18n: true,
  11. rank: 2
  12. },
  13. children: [
  14. {
  15. path: "/editor/index",
  16. name: "reEditor",
  17. component: () => import("/@/views/editor/index.vue"),
  18. meta: {
  19. title: $t("menus.hseditor"),
  20. i18n: true,
  21. keepAlive: true
  22. }
  23. }
  24. ]
  25. };
  26. export default editorRouter;