/
githubmirror
/
halo
Обзор
Документация
Войти
/
githubmirror
/
halo
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ui/uc-src/modules/profile/module.ts
33 строки
855 B
Ryan Wang
Lazy load some routes to improve initial render performance (#7930)
13 ноя 2025, 09:28
Не верифицирован
13 ноя 2025, 09:28
dab1ceb
Код
Авторство
О чём код?
import { IconAccountCircleLine } 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: "/", component: BasicLayout, name: "Root", redirect: "/profile", children: [ { path: "profile", name: "Profile", component: () => import("./Profile.vue"), meta: { title: "core.uc_profile.title", searchable: true, menu: { name: "core.uc_sidebar.menu.items.profile", group: "dashboard", icon: markRaw(IconAccountCircleLine), priority: 0, mobile: true, }, }, }, ], }, ], });