feat: remove admin tab if isn't admin
This commit is contained in:
parent
98e60a8929
commit
cf28688b8e
1 changed files with 1 additions and 1 deletions
|
|
@ -62,12 +62,12 @@ onMounted(async () => {
|
|||
role.value = "admin";
|
||||
}
|
||||
}
|
||||
|
||||
menuList.value = data;
|
||||
if (role.value !== "admin") {
|
||||
menuList.value = data.filter(
|
||||
(v: any) =>
|
||||
!v.label.includes("คู่มือการตรวจสอบและแก้ไข") &&
|
||||
!v.label.includes("คู่มือการใช้งาน (ผู้ดูแลระบบ)") &&
|
||||
!v.label.includes("คู่มือการจัดการระบบ")
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue