zhengyiming
6 天以前 20459fe59f680031bfc7c1012be860e0727cb016
src/views/Permission/components/dialogAuthorizeV2.vue
@@ -308,11 +308,11 @@
}
function handleConfirm() {
  const selectedMenuIds = moduleTree.value.getCheckedNodes(false, true).map((x) => x.id);
  console.log('selectedMenuIds: ', selectedMenuIds);
  handleSelectModule(getMenuById(state.currentMenuId));
  const selectedMenuIds = moduleTree.value.getCheckedNodes().map((x) => x.id);
  if (state.currentMenuId) {
    handleSelectModule(getMenuById(state.currentMenuId));
  }
  const resourceIds = state.checkedInfo.map((x) => x.resourceId);
  console.log('resourceIds: ', resourceIds);
  emit('onConfirm', selectedMenuIds, resourceIds);
}
</script>