From a4ef50a3a574b49a10f6ca0e0f5cd4c39ebc0d40 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Thu, 14 Nov 2024 11:31:24 +0700 Subject: [PATCH] layout --- public/toc.json | 2 ++ src/interface/request/main/type.ts | 5 +--- src/views/MainLayout.vue | 48 ++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 6 deletions(-) diff --git a/public/toc.json b/public/toc.json index 9103e75b..82d36b51 100644 --- a/public/toc.json +++ b/public/toc.json @@ -9,9 +9,11 @@ "activeIcon": "mdi-file", "label": "คู่มือการใช้งานระบบแอดมิน", "children": [ + { "label": "การใช้งานผู้ดูแลระบบ", "path": "/manual/chapter-1-superadmin-maintenance" + }, { "label": "การใช้งานผู้ดูแลระบบระดับสูง", diff --git a/src/interface/request/main/type.ts b/src/interface/request/main/type.ts index 5231b6ef..3fc7ebd4 100644 --- a/src/interface/request/main/type.ts +++ b/src/interface/request/main/type.ts @@ -3,8 +3,5 @@ export interface MenuItem { activeIcon: string; label: string; path?: string; - children?: { - label: string; - path: string; - }[]; + children?: MenuItem[]; } diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index a945202e..3ecb6e66 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -313,7 +313,7 @@ function defaultOpen(index: number) {
+
+
+ + + + {{ subMenu2.label }} + + + + + + + + {{ subMenu.label }} + + + +
+