Skip to content

Commit

Permalink
minor: fix coverity
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiaone committed Feb 22, 2022
1 parent 7876703 commit 19e349c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/components/nav/head-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ export default {
action_ids: ['view_business'],
resources: [{
type: 'biz',
id: project.bk_biz_id,
id: project?.bk_biz_id,
}],
}).then((res) => {
this.$emit('auth', res.data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export default {
nodes.forEach((node) => {
node.checked = bool;
node.disabled = bool;
node?.children.length && this.inheritCheckNode(node.children, bool);
node.children?.length && this.inheritCheckNode(node.children, bool);
});
},
// 遍历树找到勾选的节点,如果父节点已勾选,子孙节点不算在列表内
Expand Down

0 comments on commit 19e349c

Please sign in to comment.