/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/console-src/modules/interface/menus/module.ts
33 строки
802 B
Ryan Wang
Lazy load some routes to improve initial render performance (#7930)
13 ноя 2025, 09:28
Не верифицирован
13 ноя 2025, 09:28
dab1ceb
Код
Авторство
О чём код?
import BasicLayout from "@console/layouts/BasicLayout.vue"; import { IconListSettings } from "@halo-dev/components"; import { definePlugin } from "@halo-dev/ui-shared"; import { markRaw } from "vue"; export default definePlugin({ components: {}, routes: [ { path: "/menus", name: "MenusRoot", component: BasicLayout, meta: { title: "core.menu.title", searchable: true, permissions: ["system:menus:view"], menu: { name: "core.sidebar.menu.items.menus", group: "interface", icon: markRaw(IconListSettings), priority: 1, }, }, children: [ { path: "", name: "Menus", component: () => import("./Menus.vue"), }, ], }, ], });