diff --git a/console/uc-src/modules/contents/posts/module.ts b/console/uc-src/modules/contents/posts/module.ts index b25aa9cf96..54f820600f 100644 --- a/console/uc-src/modules/contents/posts/module.ts +++ b/console/uc-src/modules/contents/posts/module.ts @@ -9,24 +9,25 @@ export default definePlugin({ ucRoutes: [ { path: "/posts", + name: "PostsRoot", component: BasicLayout, + meta: { + title: "core.uc_post.title", + searchable: true, + permissions: ["uc:posts:manage"], + menu: { + name: "core.uc_sidebar.menu.items.posts", + group: "content", + icon: markRaw(IconBookRead), + priority: 0, + mobile: true, + }, + }, children: [ { path: "", name: "Posts", component: PostList, - meta: { - title: "core.uc_post.title", - searchable: true, - permissions: ["uc:posts:manage"], - menu: { - name: "core.uc_sidebar.menu.items.posts", - group: "content", - icon: markRaw(IconBookRead), - priority: 0, - mobile: true, - }, - }, }, { path: "editor", diff --git a/console/uc-src/modules/notifications/module.ts b/console/uc-src/modules/notifications/module.ts index 082ee16b79..53472106fb 100644 --- a/console/uc-src/modules/notifications/module.ts +++ b/console/uc-src/modules/notifications/module.ts @@ -8,23 +8,24 @@ export default definePlugin({ ucRoutes: [ { path: "/notifications", + name: "NotificationsRoot", component: BasicLayout, + meta: { + title: "core.uc_notification.title", + searchable: true, + menu: { + name: "core.uc_sidebar.menu.items.notification", + group: "dashboard", + icon: markRaw(IconNotificationBadgeLine), + priority: 1, + mobile: true, + }, + }, children: [ { path: "", name: "Notifications", component: Notifications, - meta: { - title: "core.uc_notification.title", - searchable: true, - menu: { - name: "core.uc_sidebar.menu.items.notification", - group: "dashboard", - icon: markRaw(IconNotificationBadgeLine), - priority: 1, - mobile: true, - }, - }, }, ], },