diff --git a/src/views/MainLayout.vue b/src/views/MainLayout.vue index f75b39507..76ee21a07 100644 --- a/src/views/MainLayout.vue +++ b/src/views/MainLayout.vue @@ -68,7 +68,7 @@ const options = ref([ * ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ */ const tabScroll = () => { - return route.name == "registryDetail" || route.name == "registryEmployeeAdd"; + return route.name == "registryDetail"; }; /** @@ -157,10 +157,7 @@ const updateScroll = (position: number) => { * ให้แสดง แทปด้านขวา เมื่อเข้าหน้า รายละเอียดทะเบียนประวัติ และ rightActive เท่ากับ true */ const activeBtn = () => { - return ( - (route.name == "registryDetail" || route.name == "registryEmployeeAdd") && - rightActive.value - ); + return route.name == "registryDetail" && rightActive.value; }; /** @@ -225,8 +222,7 @@ const myEventHandler = (e: any, setSCroll: boolean) => { const activeMenu = (path: string) => { if (path == "dashboard" && route.fullPath == "/") return true; - if (path == "registry" && route.fullPath.includes("registryEmployee")) - return false; + if (path == "registry" && route.fullPath == "/") return false; const bool = route.fullPath.includes(path); return bool; };