提交 b5e48586 编写于 作者: M MaxKey

Update layout-nav.component.ts

上级 a756c200
...@@ -110,9 +110,9 @@ export class LayoutDefaultNavComponent implements OnInit, OnDestroy { ...@@ -110,9 +110,9 @@ export class LayoutDefaultNavComponent implements OnInit, OnDestroy {
if (linkNode == null) { if (linkNode == null) {
return false; return false;
} }
const id = +(linkNode.dataset !== undefined) ? linkNode.dataset?.['id'] : ''; const id = +linkNode.dataset!['id']!;
// Should be ingore children title trigger event // Should be ingore children title trigger event
if (id == '') { if (isNaN(id)) {
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册