From 4b67c65cf562238568ff26d65d4702688d792638 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Sat, 26 Aug 2023 00:02:51 +0700 Subject: [PATCH] closed#72 --- src/views/MainLayout.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index d8811af02..08f2ca9a4 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -266,8 +266,9 @@ const myEventHandler = (e: any, setSCroll: boolean) => { */ const activeMenu = (path: string) => { if (path == "dashboard" && route.fullPath == "/") return true; - if (path == "registry" && route.fullPath == "/registry-employee") - return false; + if (path == "registry" && route.fullPath == "/registry-employee") return false; + if (path == "registry" && route.fullPath.includes(`/registry-employee/edit`)) return false; + if (path == "registry" && route.fullPath == "/") return false; // if (path != "registry" && path == "registryEmployee" && route.fullPath == "/registryEmployee") return true; const bool = route.fullPath.includes(`/${path}`);