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