fix: 父菜单项(有children无url)不再报configured error
This commit is contained in:
parent
2c1283cd4b
commit
1d177f163b
@ -101,6 +101,8 @@ bricks.Menu = class extends bricks.VScrollPanel {
|
|||||||
console.log('menu item define error', opts);
|
console.log('menu item define error', opts);
|
||||||
}
|
}
|
||||||
f.bind(t, this)(event);
|
f.bind(t, this)(event);
|
||||||
|
} else if (opts.children || opts.items) {
|
||||||
|
// parent menu item with sub-items, handled by Menu toggle
|
||||||
} else {
|
} else {
|
||||||
console.log('********** menu item configured error *******');
|
console.log('********** menu item configured error *******');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user