本地权限问题
This commit is contained in:
@@ -52,10 +52,10 @@
|
|||||||
const menuList = this.$store.getters.getMenuList;
|
const menuList = this.$store.getters.getMenuList;
|
||||||
let menuData = [];
|
let menuData = [];
|
||||||
let menuID = ["ff7bc984c8115204bba04090f350b19c", "e02897e9ab6b1a72f49c47c07b5be9a5"];
|
let menuID = ["ff7bc984c8115204bba04090f350b19c", "e02897e9ab6b1a72f49c47c07b5be9a5"];
|
||||||
this.menuName.forEach(item => {
|
// this.menuName.forEach(item => {
|
||||||
for (let i = 0; i < menuList.length; i++) {
|
for (let i = 0; i < menuList.length; i++) {
|
||||||
let entity = menuList[i];
|
let entity = menuList[i];
|
||||||
if (item !== entity.menuName) continue;
|
// if (item !== entity.menuName) continue;
|
||||||
if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) === -1) {
|
if (menuID.indexOf(entity.id) >= 0 && menuData.indexOf(entity.id) === -1) {
|
||||||
menuData.push(entity.id);
|
menuData.push(entity.id);
|
||||||
if (entity.id === "ff7bc984c8115204bba04090f350b19c") {
|
if (entity.id === "ff7bc984c8115204bba04090f350b19c") {
|
||||||
@@ -64,8 +64,8 @@
|
|||||||
this.keynote = true
|
this.keynote = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
});
|
// });
|
||||||
this.tabValue = this.database ? 'database' : (this.keynote ? 'keynote' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : ''))))
|
this.tabValue = this.database ? 'database' : (this.keynote ? 'keynote' : (this.tracking ? 'listTracking' : (this.other ? 'listOther' : (this.library ? 'localProductsOrProjectLibrary' : ''))))
|
||||||
},
|
},
|
||||||
watch: {},
|
watch: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user