ปรับโครงสร้างเมนู, เพิ่มเมนูในทะเบียนประวัติ
This commit is contained in:
parent
6fbc73300c
commit
054802c8b7
26 changed files with 1337 additions and 250 deletions
|
|
@ -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;
|
||||
};
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue