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