--demand 页面权限

This commit is contained in:
yuping
2023-02-05 02:06:45 +08:00
parent 9e85855410
commit cbb9a6df3d
3 changed files with 31 additions and 22 deletions

View File

@@ -39,6 +39,12 @@ export function checkPer(per) {
}
return (per + "").split(',').some(t => admin.some(s => s == t))
}
export function checkMenu(path='') {
// return store?.state?.menus.some(t => path.includes(t));
console.log(path)
return true;
}
export function deepClone(obj) {
let result = typeof obj.splice === "function" ? [] : {};