fix: 父菜单项(有children无url)不再报configured error

This commit is contained in:
yumoqing 2026-07-14 15:45:22 +08:00
parent 2c1283cd4b
commit 1d177f163b

View File

@ -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 *******');
} }