修改页面显示

This commit is contained in:
zhangsir
2024-05-15 11:41:40 +08:00
parent bd9f9d16d8
commit 363ee432fd
4 changed files with 24 additions and 5 deletions

View File

@@ -57,7 +57,9 @@ export function checkOwner(per) {
export function checkMenu(path = "") {
return store?.state?.menus.some(t => path.split(",").some(s => "/" + s === t));
}
export function checkOrgs(){
return store?.state?.userInfoOrgs.length > 0
}
export function deepClone(obj) {
let result = typeof obj.splice === "function" ? [] : {};
if (obj && typeof obj === "object") {