@lambo-design/pro-layout 1.0.0-beta.23 → 1.0.0-beta.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -165,18 +165,21 @@ export default {
|
|
|
165
165
|
let item = this.originMenuList.filter(menu => menu.name === current);
|
|
166
166
|
console.log("item=",item)
|
|
167
167
|
if (item && item.length > 0){
|
|
168
|
-
let type = item.type;
|
|
168
|
+
let type = item[0].type;
|
|
169
|
+
console.log("type=="+type)
|
|
169
170
|
if (type == 2) {
|
|
170
171
|
this.activeName = current;
|
|
171
172
|
} else {
|
|
172
173
|
let pItem = this.originMenuList.filter(menu => menu.permissionId === item.pid);
|
|
174
|
+
console.log("pItem==",pItem)
|
|
173
175
|
if (pItem && pItem.length > 0){
|
|
174
|
-
this.activeName = pItem.name;
|
|
176
|
+
this.activeName = pItem[0].name;
|
|
175
177
|
}
|
|
176
178
|
}
|
|
177
179
|
} else {
|
|
178
180
|
this.activeName = current;
|
|
179
181
|
}
|
|
182
|
+
console.log("activeName=="+this.activeName)
|
|
180
183
|
},
|
|
181
184
|
getOpenedNamesByActiveName(){
|
|
182
185
|
let res = filterMenuName(this.menuList,this.activeName);
|