ปรับโครงสร้างเมนู, เพิ่มเมนูในทะเบียนประวัติ

This commit is contained in:
Warunee Tamkoo 2023-08-10 17:58:18 +07:00
parent 6fbc73300c
commit 054802c8b7
26 changed files with 1337 additions and 250 deletions

View file

@ -221,9 +221,11 @@ 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 == "/") return false;
const bool = route.fullPath.includes(path);
// if (path != "registry" && path == "registryEmployee" && route.fullPath == "/registryEmployee") return true;
const bool = route.fullPath.includes(`/${path}`);
return bool;
};
/**