From e47ba8c3f37dd855fd09c1efc4eb5024d6589556 Mon Sep 17 00:00:00 2001 From: Steven Moder Date: Wed, 19 Jun 2024 06:24:03 +0800 Subject: [PATCH] refactor: Remove unused UserView component and related route This commit removes the unused UserView component and its corresponding route from the router configuration. The UserView component was no longer needed and was causing unnecessary code clutter. Removing it improves code cleanliness and reduces potential confusion for developers working on the project. --- web/src/utils/router.ts | 5 ----- web/src/views/home/staff/UserView.vue | 1 - web/src/views/index/HomeView.vue | 8 -------- 3 files changed, 14 deletions(-) delete mode 100644 web/src/views/home/staff/UserView.vue diff --git a/web/src/utils/router.ts b/web/src/utils/router.ts index a4ac21a..77eee59 100644 --- a/web/src/utils/router.ts +++ b/web/src/utils/router.ts @@ -105,11 +105,6 @@ const routes = [ component: () => import("@/views/home/staff/RequestView.vue"), meta: { title: "Request", requiresAuth: true }, }, - { - path: "/home/staff/user", - component: () => import("@/views/home/staff/UserView.vue"), - meta: { title: "User", requiresAuth: true }, - }, ], }, ], diff --git a/web/src/views/home/staff/UserView.vue b/web/src/views/home/staff/UserView.vue deleted file mode 100644 index cc340bc..0000000 --- a/web/src/views/home/staff/UserView.vue +++ /dev/null @@ -1 +0,0 @@ - diff --git a/web/src/views/index/HomeView.vue b/web/src/views/index/HomeView.vue index 126482f..494097f 100644 --- a/web/src/views/index/HomeView.vue +++ b/web/src/views/index/HomeView.vue @@ -11,7 +11,6 @@ import { faStore, faSuitcase, faTicket, - faUser, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { autoIncrement } from "@/utils/utils"; @@ -137,13 +136,6 @@ const update = () => { icon: faComment, children: [], }); - managementChildren.push({ - id: autoIncrement(menuItems.value), - label: "User", - link: "/home/staff/user", - icon: faUser, - children: [], - }); } if (managementChildren.length > 0) { menuItems.value.push({