From 0eb7ecc97723a478f467b551af9e18cb91bb08b2 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:27:31 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20=20type=20=20MenuItem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/interface/request/main/main.ts | 19 ++----------------- src/interface/request/main/type.ts | 10 ++++++++++ 2 files changed, 12 insertions(+), 17 deletions(-) create mode 100644 src/interface/request/main/type.ts diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 6061c4b8..c52f9627 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -1,19 +1,4 @@ import { ref } from "vue"; +import type { MenuItem } from "./type"; -export const menuList = ref([ - { - icon: "mdi-home-variant-outline", - activeIcon: "mdi-home-variant", - label: "หน้าแรก", - path: "/", - }, - { - icon: "mdi-file-outline", - activeIcon: "mdi-file", - label: "คู่มือการใช้งาน", - children: [] as { - label: string; - path: string; - }[], - }, -]); +export const menuList = ref([]); diff --git a/src/interface/request/main/type.ts b/src/interface/request/main/type.ts new file mode 100644 index 00000000..5231b6ef --- /dev/null +++ b/src/interface/request/main/type.ts @@ -0,0 +1,10 @@ +export interface MenuItem { + icon: string; + activeIcon: string; + label: string; + path?: string; + children?: { + label: string; + path: string; + }[]; +}