zhengyiming
2025-08-07 4ea3fb422f1c1af628d948eb3908b6a61f71bbdf
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>