permission => โครงสร้างอัตรากำลัง,อัตรากำลังลูกจ้างประจำ,ทะเบียนประวัติ, ทะเบียนประวัติลูกจ้าง,ตั้งค่าเว็บสรรหา, สอบแข่งขัน
This commit is contained in:
parent
a59a9d5ee7
commit
c8fef97125
34 changed files with 606 additions and 1904 deletions
|
|
@ -7,15 +7,11 @@ import type { RoleData } from "@/interface/main";
|
|||
const storeMenu = useMenuDataStore();
|
||||
|
||||
export function checkPermission(route: any): RoleData | null {
|
||||
console.log("storeMenu.permissions", storeMenu.permissions);
|
||||
|
||||
|
||||
if (storeMenu.permissions && route.meta.Key) {
|
||||
const role =
|
||||
storeMenu.permissions.roles.find(
|
||||
(item) => item.authSysId === route.meta.Key
|
||||
) ?? null;
|
||||
|
||||
|
||||
return role;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue