tambah menu sideBarMenu , middleware definepagemeta
This commit is contained in:
No files matched your search
@@ -1,5 +0,0 @@
|
||||
import { useAccess } from "~/composables/useAccess";
|
||||
|
||||
export function usePagePermission(dataUser : string) {
|
||||
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import type { PageAccess } from "~/types/menuAkses/access";
|
||||
|
||||
export const useAccess = (pageRoute: string , userRole: string) => {
|
||||
//const route = useRoute();
|
||||
const getRole = "admin";
|
||||
const getRole = userRole;
|
||||
//const meta = route.path; //halaman yang sedang diakses
|
||||
const meta = pageRoute
|
||||
|
||||
|
||||
Reference in New Issue
Block a user