mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
--demand 页面权限
This commit is contained in:
@@ -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" ? [] : {};
|
||||
|
||||
Reference in New Issue
Block a user