@lambo-design/pro-layout 1.0.0-beta.25 → 1.0.0-beta.28
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
|
@@ -163,15 +163,12 @@ export default {
|
|
|
163
163
|
},
|
|
164
164
|
menuClick(current) {
|
|
165
165
|
let item = this.originMenuList.filter(menu => menu.name === current);
|
|
166
|
-
console.log("item=",item)
|
|
167
166
|
if (item && item.length > 0){
|
|
168
167
|
let type = item[0].type;
|
|
169
|
-
console.log("type=="+type)
|
|
170
168
|
if (type == 2) {
|
|
171
169
|
this.activeName = current;
|
|
172
170
|
} else {
|
|
173
|
-
let pItem = this.originMenuList.filter(menu => menu.permissionId === item.pid);
|
|
174
|
-
console.log("pItem==",pItem)
|
|
171
|
+
let pItem = this.originMenuList.filter(menu => menu.permissionId === item[0].pid);
|
|
175
172
|
if (pItem && pItem.length > 0){
|
|
176
173
|
this.activeName = pItem[0].name;
|
|
177
174
|
}
|